Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

alignof(i) not colored as a keyword #246

Open
sean-mcmanus opened this issue Aug 2, 2017 · 3 comments
Open

alignof(i) not colored as a keyword #246

sean-mcmanus opened this issue Aug 2, 2017 · 3 comments
Labels

Comments

@sean-mcmanus
Copy link

sean-mcmanus commented Aug 2, 2017

Use int a = alignof(char). The colorization of alignof is as a function instead of a keyword (it colors as a keyword without the parenthesis). It should match sizeof(). This repros with Atom and VS Code. See microsoft/vscode-cpptools#938 .

@winstliu winstliu added the bug label Aug 3, 2017
fnadeau pushed a commit to fnadeau/language-c that referenced this issue Oct 31, 2017
Move sizeof/alignas/alignof to keywork.operator section.
Fix only apply to C, C++ is already behaving correctly.
@sean-mcmanus
Copy link
Author

The same issue exists for static_assert, alignas, and typeid.

@sean-mcmanus
Copy link
Author

This bug still repros with Atom 1.33.1 -- I see some references to tree sitter fixes...not sure if this was supposed to be fixed...maybe it'll be fixed in a later release?

@rsese
Copy link

rsese commented Jan 10, 2019

Looking at the comments in #303, it sounds like fixing this issue as part of that PR was considered along with a number of other issues (#303 (comment)) but folks ended up sticking to the initial set of issues mentioned in the PR body.

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

No branches or pull requests

3 participants