typescript treesitter injection for angular templates

This commit is contained in:
2023-06-23 19:51:54 -05:00
parent 356ed03d2f
commit ee951b099b
4 changed files with 33 additions and 17 deletions
+4 -11
View File
@@ -1,21 +1,14 @@
((attribute
(attribute_name) @_alpine
(quoted_attribute_value (attribute_value) @javascript))
(quoted_attribute_value
(attribute_value) @javascript))
(#lua-match? @_alpine "^[@:]%l+.-$"))
((attribute
(attribute_name) @_alpine
(quoted_attribute_value (attribute_value) @javascript))
(quoted_attribute_value
(attribute_value) @javascript))
(#lua-match? @_alpine "^x[-]%l+$"))
(script_element
(raw_text) @javascript)
;((text) @htmldjango (#lua-match? @htmldjango "^{%p%s+%l+.-%s+%p}$"))
;
;((text) @htmldjango (#lua-match? @htmldjango "^{{%s+.-%s+}}$"))
;
;((attribute
; (quoted_attribute_value (attribute_value) @htmldjango))
; (#lua-match? @htmldjango "^{{%s+.-%s+}}$"))