fixed angular template html injections
This commit is contained in:
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user