Fix vue injection queries

This commit is contained in:
Lucario387 2022-12-17 12:27:14 +09:00 committed by Stephan Seitz
parent 6f9e5cdba7
commit eaeedfb804

View file

@ -1,4 +1,35 @@
; inherits: html_tags
(
(style_element
(start_tag) @_no_lang
(raw_text) @css)
(#not-contains? @_no_lang "lang=")
)
(
(style_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @css)
(#eq? @_lang "css")
)
; if start_tag does not specify `lang="..."` then set it to javascript
(
(script_element
(start_tag) @_no_lang
(raw_text) @javascript)
(#not-contains? @_no_lang "lang=")
)
(
(script_element
(start_tag
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @javascript)
(#eq? @_lang "js")
)
(
(style_element
@ -15,7 +46,7 @@
(attribute
(quoted_attribute_value (attribute_value) @_lang)))
(raw_text) @typescript)
(#any-of? @_lang "ts" "typescript")
(#eq? @_lang "ts")
)
((interpolation