feat(html): lit attr binding interpolation

This commit is contained in:
Benny Powers 2022-10-17 21:13:17 +03:00 committed by ObserverOfTime
parent b4d8b7e5a3
commit 5070936137

View file

@ -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