You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What editor/extension do you use for actually building things with RSX?
Currently during proc macro expanding - rstml preserve original spans, so any IDE with "semantic highlight" and proc-macro support should work well.
I tested it with rust-analyzer (on vscode) and IDEA Rust plugin.
Is there a tree-sitter grammar for RSX/RSTML?
I dont think so.
Are there any plans to extend/fork the tree-sitter-rust grammar to add support for RSX?
I had no plans for this, and see the following problems with it:
The needs to support two sets of rules (one in rstml code itself, and one specific for tree-sitter)
as you mention in original issue: js and ts parser are both embed jsx/tsx implementation, which is good for new users, since they don't need to install any specific grammar/plugin for html in js.
But rstml is just a syntax for macro, and it differ with yew's implementation, so it no chance that Rust original grammar will embed it at some time, is there a way in tree-sitter to extend existing grammar dynamically?
Also rstml is library for parsing, not a macro implementation, so other libraries could name entrypoint in different ways.
It seems the only attempt at a tree-sitter grammar for RSX/RSTLM was: https://github.com/tjdevries/tree-sitter-rsx
Are there any plans to extend/fork the tree-sitter-rust grammar to add support for RSX?
What editor/extension do you use for actually building things with RSX?
Context: leptos-rs/leptos#2108
The text was updated successfully, but these errors were encountered: