mirror of
https://github.com/matze/wastebin.git
synced 2026-04-25 00:25:59 +03:00
[GH-ISSUE #33] Extend syntax, including Prolog support #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wastebin-matze#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
@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.
@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.
@berezovskyi commented on GitHub (Jul 2, 2023):
@matze vielen Dank 🤝 works wonderfully!