[Github-comments] [geany/geany] Add Prolog filetype support (PR #3171)

elextr notifications at github.com
Wed Apr 27 00:50:15 UTC 2022


Geany can't really override any styles since the lexer will just put them back each time it runs, and Scintilla, not Geany, controls when that happens and what range of the file is re-lexed.

A style can't be "ignored" but it can be mapped to the default style, and we could do that for `SCE_VISUALPROLOG_STRING_VERBATIM` if it is only used in that situation.

But then in the example in your image that would mean the second `sort(0,` would not be styled as in the first occurrence.

Which is the least of the two evils?

> That said, I don't think this warrants an upstream patch, since the lexer is just working as advertised.

Well clearly someone uses Visual Prolog or they would not have contributed the lexer.  Somebody could contribute a patch to Lexilla (controlled by a property) that changed `@` behaviour and any other differences.

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

Message ID: <geany/geany/pull/3171/c1110392039 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220426/55bcc9f9/attachment.htm>


More information about the Github-comments mailing list