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

Jiří Techet notifications at github.com
Thu Apr 28 08:31:35 UTC 2022


> Upshot: you'll need to merge SCE_VISUALPROLOG_ANONYMOUS and SCE_VISUALPROLOG_VARIABLE into one style to emulate what Vim does:

So should we do that? I'm asking you because you seem to be the most proficient Prolog user around. Basically, when you edit `filetypes.prolog` and under the 'styling' section set e.g.:
```
variable=parameter
anonymous=parameter
```
does it look good to you? Or is there a better choice than `parameter` for the mapping?

> One more thing. SWI-Prolog [uniquely](https://wiki.visual-prolog.com/index.php?title=Language_Reference/Built-in_entities/Domains#string) allows backticks to delimit [string literals](https://www.swi-prolog.org/pldoc/man?section=string#:~:text=back-quoted%20text%20(as%20in%20%60text%60)%20is%20mapped%20to%20a%20list%20of%20character%20codes):

Thanks for the patch, looks good to me, will add it.

> I am not a Prologist but I wonder why SWI-prolog users would use Geany when SIW-prolog has a built-in editor? And why open source users would use SWI-prolog instead of GNU prolog?

@elextr SWI prolog is open source and as far as I can tell it is the most popular prolog implementation. On the other hand, Visual Prolog, for which the lexer is written is closed source and Windows only and this is the one I think doesn't need much of our attention.

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

Message ID: <geany/geany/pull/3171/c1111899963 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220428/17ea2ad9/attachment.htm>


More information about the Github-comments mailing list