[Github-comments] [geany/geany] highlighter fails to recognize some valid Erlang expressions (#2651)

elextr notifications at xxxxx
Mon Nov 9 22:23:31 UTC 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201109/0df3122b/attachment.htm>


More information about the Github-comments mailing list