[GH-ISSUE #33] Extend syntax, including Prolog support #26

Closed
opened 2026-02-27 10:15:21 +03:00 by kerem · 3 comments
Owner

Originally created by @berezovskyi on GitHub (Jun 27, 2023).
Original GitHub issue: https://github.com/matze/wastebin/issues/33

I saw that wastebin is currently using Syntect for highlighting, which in turn relies on Sublime-2-based theme definitions. I also saw #17, which uses Tree-sitter for highlighing.

How difficult would it be to add support for Prolog code highlighting, e.g. by plugging https://github.com/BenjaminSchaaf/swi-prolog-sublime-syntax or https://github.com/Rukiza/tree-sitter-prolog into Syntect or Tree-sitter, respectively?

I am a Rust noob so far (scratch that, I have no Rust experience at all), just so that you know.

Originally created by @berezovskyi on GitHub (Jun 27, 2023). Original GitHub issue: https://github.com/matze/wastebin/issues/33 I saw that wastebin is currently using Syntect for highlighting, which in turn relies on Sublime-2-based theme definitions. I also saw #17, which uses Tree-sitter for highlighing. How difficult would it be to add support for Prolog code highlighting, e.g. by plugging https://github.com/BenjaminSchaaf/swi-prolog-sublime-syntax or https://github.com/Rukiza/tree-sitter-prolog into Syntect or Tree-sitter, respectively? I am a Rust noob so far (scratch that, I have no Rust experience at all), just so that you know.
kerem closed this issue 2026-02-27 10:15:21 +03:00
Author
Owner

@berezovskyi commented on GitHub (Jun 27, 2023):

I'd also be interested in other things like https://github.com/blake-regalia/linked-data.syntaxes but that's for later.

<!-- gh-comment-id:1609938678 --> @berezovskyi commented on GitHub (Jun 27, 2023): I'd also be interested in other things like https://github.com/blake-regalia/linked-data.syntaxes but that's for later.
Author
Owner

@matze commented on GitHub (Jun 27, 2023):

I see zola has additional syntaxes including Prolog, so definitely there is a way to go forward.

As indicated in #17, tree-sitter would be nice if it wasn't for the downsides: difficult set up, blow up in size and smaller number of supported languages.

<!-- gh-comment-id:1610029588 --> @matze commented on GitHub (Jun 27, 2023): I see [zola](https://github.com/getzola/zola) has additional syntaxes including Prolog, so definitely there is a way to go forward. As indicated in #17, tree-sitter would be nice if it wasn't for the downsides: difficult set up, blow up in size and smaller number of supported languages.
Author
Owner

@berezovskyi commented on GitHub (Jul 2, 2023):

@matze vielen Dank 🤝 works wonderfully!

<!-- gh-comment-id:1616774071 --> @berezovskyi commented on GitHub (Jul 2, 2023): @matze vielen Dank 🤝 works wonderfully!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wastebin-matze#26
No description provided.