GLSLSyntaxHighlighter
Highlights GLSL: keywords, types, built-in functions, numbers, comments and the preprocessor.
| Inherits | TokenizedHighlighter |
| Group | construct |
Declared in src/libs/libconstruct/construct/ui/GLSLSyntaxHighlighter.hpp.
Detailed description
A TokenizedHighlighter of syntax::Language::Glsl (log-color §LGC-D-10, parity row LGC-32). The tokenizer reads each line once, from left to right, and testSyntax holds it to the spans of a corpus. The colors come from the syntax colors of the current SemanticPalette. Until 2026-10-18 the class ran one regular expression per word class over each line (windows-field-defects §WFD-RL-30). One tokenizer reads each character a bounded number of times now.