mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 23:10:11 -04:00
Add embedded template to support ERB files
This commit is contained in:
parent
755bfaf287
commit
bcf091d865
4 changed files with 25 additions and 0 deletions
12
queries/embedded_template/highlights.scm
Normal file
12
queries/embedded_template/highlights.scm
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
(comment_directive) @comment
|
||||
|
||||
[
|
||||
"<%#"
|
||||
"<%"
|
||||
"<%="
|
||||
"<%_"
|
||||
"<%-"
|
||||
"%>"
|
||||
"-%>"
|
||||
"_%>"
|
||||
] @keyword
|
||||
2
queries/embedded_template/injections.scm
Normal file
2
queries/embedded_template/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(content) @html @combined
|
||||
(code) @ruby @combined
|
||||
Loading…
Add table
Add a link
Reference in a new issue