tree-sitter / tree-sitter-ruby

Ruby grammar for tree-sitter
MIT License
182 stars 58 forks source link

Add support for *.html.slim filetypes #243

Closed apilot closed 1 year ago

apilot commented 1 year ago

Tree-sitter supported by multiple editors, and enabling support for this format will empower these editors Slim-template

amaanq commented 1 year ago

The solution would be to create a grammar called "slim" that extends off the Ruby one to support these filetypes, not change the Ruby one itself

apilot commented 1 year ago

what is the best way to do this to include support? just in ruby itself there is already support for html.erb if I do not confuse anything. and it's the same in a different format.

amaanq commented 1 year ago

erb is embedded template, right? that has its own grammar