Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend syntax, including Prolog support #33

Closed
berezovskyi opened this issue Jun 27, 2023 · 3 comments
Closed

Extend syntax, including Prolog support #33

berezovskyi opened this issue Jun 27, 2023 · 3 comments

Comments

@berezovskyi
Copy link
Contributor

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
Copy link
Contributor Author

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

@matze
Copy link
Owner

matze commented 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.

@matze matze changed the title Prolog highlighting support? Extend syntax, includling Prolog support Jun 27, 2023
@matze matze changed the title Extend syntax, includling Prolog support Extend syntax, including Prolog support Jun 27, 2023
@matze matze closed this as completed in a0c5666 Jul 2, 2023
@berezovskyi
Copy link
Contributor Author

@matze vielen Dank 🤝 works wonderfully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants