mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
injections(html): update injection queries
This commit is contained in:
parent
e6eaefe449
commit
6d4869e59d
1 changed files with 4 additions and 5 deletions
|
|
@ -1,10 +1,9 @@
|
|||
; <style>...</style>
|
||||
(
|
||||
(style_element
|
||||
(start_tag) @_no_attribute
|
||||
(start_tag
|
||||
(tag_name) .)
|
||||
(raw_text) @css)
|
||||
(#match? @_no_attribute "^\\<\\s*style\\s*\\>$")
|
||||
; unsure why, but without escaping < and > the query breaks
|
||||
)
|
||||
|
||||
; <style blocking> ...</style>
|
||||
|
|
@ -33,9 +32,9 @@
|
|||
; <script>...</script>
|
||||
(
|
||||
(script_element
|
||||
(start_tag) @_no_attribute
|
||||
(start_tag
|
||||
(tag_name) .)
|
||||
(raw_text) @javascript)
|
||||
(#match? @_no_attribute "^\\<\\s*script\\s*\\>$")
|
||||
)
|
||||
|
||||
; <script defer>...</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue