hugo
hugo copied to clipboard
Support for tree-sitter
Hugo's existing support for syntax highlighting is good, but using tree-sitter would be a huge improvement. They have Go bindings for it as well at go-tree-sitter.
This is not something critical and I simply leave this as a suggestion.
Dependency wise this would, I guess, fall into the libsass/webp category (C/C++/zig?), which I have said (for many good reasons) we will only do if:
- There's no good Go native alternative.
- This is a real must have for Hugo.
In my head,
Chroma (the native Go alternative) is very good, which should at least satisfy the first point.
But I'll leave this proposal open for others to chime in.
One area where chroma really doesn't shine is for the console
format/type. It doesn't support newline escapes for multiline input for example. But I'm not sure tree-sitter would help with that because afaik there's no console
parser/query for tree-sitter.