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

[C/C++] Highlighting user-defined types (classes, structs, typedefs) #3984

Open
fantasai opened this issue May 7, 2024 · 0 comments
Open
Labels
C: Syntax T: feature major update for a syntax to support new language features

Comments

@fantasai
Copy link

fantasai commented May 7, 2024

Pulling up https://forum.sublimetext.com/t/highlighting-user-defined-data-types-c-in-sublime/67277 into an issue, since I'm also running into this problem: user-defined types (typedefs, classes, structs, enum types) and variables are colored the same way, but should be distinct.

Types are just annotations, whereas the variable and function names are the core of what you're doing, so distinguishing them is somewhat important for C and C++. In fact I think it'd be preferable to lose the distinction between built-in and user-defined type names (which are much closer to each other in meaning and usage) than not have one between user-defined type names and variables.

I'm unsure if this is fixable, but it's certainly come up on various forums multiple times.

@deathaxe deathaxe added T: feature major update for a syntax to support new language features C: Syntax labels May 7, 2024
@deathaxe deathaxe changed the title [C][C++] Highlighting user-defined types (classes, structs, typedefs) [C/C++] Highlighting user-defined types (classes, structs, typedefs) May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: feature major update for a syntax to support new language features
Projects
None yet
Development

No branches or pull requests

2 participants