[Github-comments] [geany/geany] Add Prolog filetype support (PR #3171)
Robert Di Pardo
notifications at github.com
Mon Apr 25 03:25:26 UTC 2022
@techee,
It looks like the primary keyword set in your last commit left out the VisualProlog type specifiers [1] (or ["Domains"][0], as the spec calls them). Compare the appearance of `unsigned` in my [earlier screen capture][2] with the one below (in the [Himbeere colorscheme](https://github.com/geany/geany-themes)):

I'm confident that SWI-Prolog users will be completely happy 👍🏼

They're getting more lexical categories than even the VS Code extension recognizes. Notice, however, that `append` and `multifile` are styled by VS Code but not Geany:

Neither is as complete as [prolog.vim](https://github.com/yochem/prolog.vim), but I think we have to accept that regex-capable parsers like Vim and Textmate grammars are simply better than Scintilla's match-every-character-of-one-lexeme-at-a-time model:

---
[1]: See https://github.com/rdipardo/geany/commit/3baa85baa25cd36b4d0e437fe7cd7383a8299fc5
The complete list is quite brief:
any
binary
binaryNonAtomic
boolean
char
compareResult
factDB
handle
integer64
integerNative
null
pointer
real
real32
string8
symbol
unsigned
unsigned64
unsignedNative
[0]: https://wiki.visual-prolog.com/index.php?title=Language_Reference/Built-in_entities#Domains
[2]: https://user-images.githubusercontent.com/59004801/163895249-93885a44-09dd-457f-af0f-8a4e43270f71.png
--
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3171#issuecomment-1108031562
You are receiving this because you are subscribed to this thread.
Message ID: <geany/geany/pull/3171/c1108031562 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220424/7db20530/attachment.htm>
More information about the Github-comments
mailing list