mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
feat(html): lit attr binding interpolation
This commit is contained in:
parent
b4d8b7e5a3
commit
5070936137
1 changed files with 10 additions and 0 deletions
|
|
@ -63,4 +63,14 @@
|
|||
(quoted_attribute_value (attribute_value) @css))
|
||||
(#eq? @_attr "style"))
|
||||
|
||||
; lit-html style template interpolation
|
||||
((attribute
|
||||
(quoted_attribute_value (attribute_value) @javascript))
|
||||
(#match? @javascript "\\$\\{")
|
||||
(#offset! @javascript 0 2 0 -1))
|
||||
((attribute
|
||||
(attribute_value) @javascript)
|
||||
(#match? @javascript "\\$\\{")
|
||||
(#offset! @javascript 0 2 0 -2))
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue