Skip to content

Conversation

@mehmetkesik
Copy link

Add RsHtml template language support, which elegantly combines Rust and Html.

  • Adds the language definition to languages.toml.
  • Includes Tree-sitter queries for syntax highlighting (highlights.scm) and injections (injections.scm) and text objects (textobjects.scm).
  • The official Tree-sitter grammar can be found here: https://github.com/rshtml/tree-sitter-rshtml
  • Documentation has been updated by running cargo xtask docgen.


[[grammar]]
name = "rshtml"
source = { git = "https://github.com/rshtml/tree-sitter-rshtml", rev = "8379a7d67c67fca21d5a45c4329eb2f61743417e" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this repo doesn't have a license. Could you add one and update the rev here afterwards?

"vscode-html-language-server",
"superhtml",
]
grammar = "rshtml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
grammar = "rshtml"

The grammar key defaults to the value of name so we can drop this part

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

Successfully merging this pull request may close these issues.

2 participants