You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Syntax highlighting keywords in CodeEdit can't contain symbols like #, so this is a limitation we can't fix directly. Otherwise, we could add all preprocessor keywords as keywords and give them their own color (similar to the @annotation color in GDScript).
We could probably change the preprocessor keywords to use control flow keyword colors, that way they would be at least consistent. Currently they mix control flow and normal shader keyword colors because they conflict with normal shader keywords, which can look a bit weird. I'll probably make a PR at some point, this has been bugging me a bit, too. It's a simple change, looks like this:
Long term solution would be to create an improved syntax highlighter as Calinou said, but there tends to more important tasks at hand currently.
Godot version
4.0.3
System information
Win7
Issue description
#if and #else highlighted with the color same as if and else shader statement:
Steps to reproduce
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: