Yeah, I have only had a quick look, but setting lexers by ID is no longer even 
supported, needs the `ilexer5*` pointer AFAICT.  Thats awkward with the big 
switches in `highlighting.c`.  Maybe as you said we can map from id to name to 
pointer and fill that in using `LexerNameFromID()` and `CreateLexer()` for now, 
but in the longer term probably need to store the name of the lexer and our 
internal id (for the switches) in the filetype struct and use that instead of 
SCILEX_* IDs.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2824#issuecomment-899364796

Reply via email to