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

sizeof() operator is not highlighted #151

Closed
vdcow opened this issue Jun 10, 2016 · 4 comments
Closed

sizeof() operator is not highlighted #151

vdcow opened this issue Jun 10, 2016 · 4 comments

Comments

@vdcow
Copy link

vdcow commented Jun 10, 2016

sizeof() operator is not highlighted anymore

Test sample

#include "stdio.h"

int main()
{
   printf("sizeof(int) = %zu", sizeof(int));
   return 0;
}
@linquize
Copy link

same in atom 1.10

@thomasjo
Copy link
Contributor

The sizeof keyword is given the scope keyword.operator.sizeof.c, so this is entirely related to syntax themes not giving it a (distinguishable) color. In the case of the default syntax themes One Light and One Dark, sizeof is given the color @mono-1 which is the same as "default text".

In summary, in order to get this resolved, you'll need to open issues on the relevant syntax themes.

/cc @simurai


NOTE: the scope in the grammar hasn't changed since November 2014, and the relevant code in the One syntax themes has not changed since May 2015, so this is not a recent "regression" as far as I can tell.

@simurai
Copy link

simurai commented Sep 15, 2016

@vladimir-didenko What theme are you using?

Made PRs to highlight operators in C for the One themes. Should be in Atom 1.12.

@vdcow
Copy link
Author

vdcow commented Sep 20, 2016

@simurai

What theme are you using?

One Dark.

Made PRs to highlight operators in C for the One themes.

Great. Thanks!

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

No branches or pull requests

5 participants