Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro parameters are not recognized, non-parameters tokens are flagged as parameters when used with # #627

Open
1 task done
akbyrd opened this issue Feb 23, 2023 · 0 comments
Labels
☠️ provably impossible Things that are actually impossible with Textmate

Comments

@akbyrd
Copy link

akbyrd commented Feb 23, 2023

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

#define FOO1(param) param
#define FOO2(param) #bar

Macro parameters are not recognized as parameters and are instead classified as meta.preprocessor.macro. Meanwhile things that are not parameters are assumed to be parameters and classified as variable.other.macro.argument if they follow the stringizing operator #.

It looks like:

image

It should look like:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☠️ provably impossible Things that are actually impossible with Textmate
Projects
None yet
Development

No branches or pull requests

2 participants