mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
Fix(vue): Invalid match queries
This commit is contained in:
parent
4bcd3a3cc3
commit
8abb563ca9
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
(style_element
|
(style_element
|
||||||
(start_tag) @_no_attribute
|
(start_tag) @_no_attribute
|
||||||
(raw_text) @css)
|
(raw_text) @css)
|
||||||
(#match? @_no_attribute "<\\s*style\\s*>")
|
(#match? @_no_attribute "^\\<\\s*style\\s*\\>$")
|
||||||
)
|
)
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
(script_element
|
(script_element
|
||||||
(start_tag) @_no_attribute
|
(start_tag) @_no_attribute
|
||||||
(raw_text) @javascript)
|
(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
|
; if start_tag does not specify `lang="..."` then set it to javascript
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue