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

For C, "alignas" macro gets tokenized as "a" and "lignas". #497

Open
2 tasks done
sean-mcmanus opened this issue Aug 25, 2020 · 0 comments
Open
2 tasks done

For C, "alignas" macro gets tokenized as "a" and "lignas". #497

sean-mcmanus opened this issue Aug 25, 2020 · 0 comments

Comments

@sean-mcmanus
Copy link

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"
  • This bug exists for C
  • [no] This bug exists for C++
  • [?] This bug exists for Objective-C
  • [?] This bug exists for Objective-C++

The code with a problem is:

#include <stdalign.h>

int main(void)
{
    alignas(4) int y = sizeof(double);
}

It looks like:

** screenshot + theme name preferable **
Dark+
image

It should look like:

The "a" part should have the same scope as the "lignas" part (entity.name.function.c).

I hit this while investigating microsoft/vscode-cpptools#6022 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant