mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
refactor: make html-like languages inherit from single query
This commit is contained in:
parent
801adf2377
commit
5d2faa0466
7 changed files with 61 additions and 119 deletions
|
|
@ -1,5 +1,4 @@
|
|||
((style_element
|
||||
(raw_text) @css))
|
||||
; inherits: html_tags
|
||||
|
||||
(
|
||||
(style_element
|
||||
|
|
@ -10,9 +9,6 @@
|
|||
(#match? @_lang "(scss|postcss|less)")
|
||||
)
|
||||
|
||||
((script_element
|
||||
(raw_text) @javascript))
|
||||
|
||||
(
|
||||
(script_element
|
||||
(start_tag
|
||||
|
|
@ -25,8 +21,8 @@
|
|||
((interpolation
|
||||
(raw_text) @javascript))
|
||||
|
||||
((directive_attribute
|
||||
(quoted_attribute_value
|
||||
((directive_attribute
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @javascript)))
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue