Integration/configuration of tree-sitter-rstml #9993
Unanswered
vincentberthier
asked this question in
Q&A
Replies: 3 comments
-
Maintainer of tree-sitter-rstml here, Helix queries and instructions should probably be up within a few days. Once they are mature enough, I'd be happy to open a pull request to merge them into helix. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Cool! |
Beta Was this translation helpful? Give feedback.
0 replies
-
My config is helix config.
[[language]]
name = "rstml"
scope = "scope.rstml"
injection-regex = "rstml"
[[grammar]]
name = "rstml"
source = { git = "https://github.com/rayliwell/tree-sitter-rstml", subpath = "rstml", rev = "07a8e3b9bda09b648a6ccaca09e15dea3adf956f" }
; leptos
((macro_invocation
macro:
[
(scoped_identifier
name: (_) @_macro_name)
(identifier) @_macro_name
]
(token_tree) @injection.content)
(#eq? @_macro_name "view")
(#set! injection.language "rstml")
(#set! injection.include-children))
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is a project intended to offer better syntax highlighting when developing with Rust web frameworks such as Leptos: https://github.com/rayliwell/tree-sitter-rstml
Problem is, I have absolutely no idea of how to do this. It explains how for Neovim, so hopefully it isn’t that hard though?
Anyone willing to have a look and share how it’s done?
Beta Was this translation helpful? Give feedback.
All reactions