Page 1 of 1

GLSL syntax highlight

Posted: Wed Apr 08, 2020 9:37 pm
by BrutPitt
I have write syntax highlight lexers for all CodeLite themes.

It is available on github:
https://github.com/BrutPitt/glslCodeLite_lexers

It seems work well, but I have just two questions about some topics.

I state:
I reused the C++ lexer module (Id 3) and redefined 3 internal names:

Code: Select all

"Id:  5" - "C++ keyword"     -> "glsl Keyword"
"Id: 16" - "Workspace tags"  -> "glsl Function"
"Id: 19" - "Local variables" -> "gl_ Variable"
They are associated to:
  • KeyWords0: for keyword and data types
  • KeyWords1: for glsl internal functions
  • KeyWords3: for gl_ reserved words (variables)
While KeyWords2 remains assigned to Doxigen keywords

Now the questions...

1) Is there a way to use KeyWords4?
(because if I assign it I don't see results... eventually also to extend C++ syntax)

2) Exist an alternative method to load/import a external lexers group, instead that add manually to lexers.json?

Thanks in advance.