Fix(vue): Invalid match queries

This commit is contained in:
Lucario387 2022-12-26 00:38:57 +09:00 committed by Stephan Seitz
parent 4bcd3a3cc3
commit 8abb563ca9

View file

@ -2,7 +2,7 @@
(style_element
(start_tag) @_no_attribute
(raw_text) @css)
(#match? @_no_attribute "<\\s*style\\s*>")
(#match? @_no_attribute "^\\<\\s*style\\s*\\>$")
)
(
@ -30,7 +30,7 @@
(script_element
(start_tag) @_no_attribute
(raw_text) @javascript)
(#match? @_no_attribute "<\\s*script\\s*>")
(#match? @_no_attribute "^\\<\\s*script\\s*\\>$")
)
; if start_tag does not specify `lang="..."` then set it to javascript