fixed angular template html injections

This commit is contained in:
2024-07-31 07:24:33 -05:00
parent 5c2a34ed4c
commit c2ec1effa7
+9 -3
View File
@@ -6,7 +6,9 @@
(object (object
(pair (pair
(property_identifier) @_key (property_identifier) @_key
(template_string) @html))))) (template_string) @injection.content
(#set! injection.include-children)
(#set! injection.language "html"))))))
(#eq? @_decorator "Component") (#eq? @_key "template")) (#eq? @_decorator "Component") (#eq? @_key "template"))
; angular inline styles ; angular inline styles
@@ -19,7 +21,9 @@
(property_identifier) @_key (property_identifier) @_key
(array (array
(string (string
(string_fragment) @css))))))) (string_fragment) @injection.content
(#set! injection.include-children)
(#set! injection.language "css"))))))))
(#eq? @_decorator "Component") (#eq? @_key "styles")) (#eq? @_decorator "Component") (#eq? @_key "styles"))
; angular inline styles "template string" ; angular inline styles "template string"
@@ -31,5 +35,7 @@
(pair (pair
(property_identifier) @_key (property_identifier) @_key
(array (array
(template_string) @css)))))) (template_string) @injection.content
(#set! injection.include-children)
(#set! injection.language "css")))))))
(#eq? @_decorator "Component") (#eq? @_key "styles")) (#eq? @_decorator "Component") (#eq? @_key "styles"))