slim-template / slim

Slim is a template language whose goal is to reduce the syntax to the essential parts without becoming cryptic.
https://slim-template.github.io
MIT License
5.29k stars 500 forks source link

tree-sitter support #951

Closed janko closed 1 month ago

janko commented 1 month ago

I've been playing with Zed, which doesn't use TextMate grammars like VS Code and Atom do, but rather uses tree-sitter for syntax highlighting.

Theoretically, writing a tree-sitter grammar should be easier than the TextMate grammar, because it doesn't use regexes AFAIK. I don't think I have the time to write one myself unfortunately, but I thought I'd still put out this feature request.

Other than Zed, Neovim also supports tree-sitter, but it falls back to the Vim plugin, which is regex-based.