Highlighting is purely syntactic, anything to be highlighted must be able to be 
determined purely from syntax, no semantics allowed.

Whilst I don't know Erlang, from your descriptions the examples look like they 
would require semantic knowledge, eg what a "list" is vs purely a '[' and ']', 
similarly in your second image your explanation seems to require to know what a 
"declaration" is.

The highlighter comes from the [Scintilla](www.scintilla.org) project, but the 
version in Geany is a little behind so you could check the latest release of 
the Scite editor (which uses the same highlighter) from that project and see if 
its better, but don't be surprised if things requiring semantics are not 
correct.  However purely syntactic issues you could report to that project (or 
better provide a patch). 

-- 
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/2651#issuecomment-724314113

Reply via email to