refactor: make html-like languages inherit from single query

This commit is contained in:
elianiva 2021-05-05 16:40:36 +07:00 committed by Stephan Seitz
parent 801adf2377
commit 5d2faa0466
7 changed files with 61 additions and 119 deletions

View file

@ -1,5 +1,4 @@
((style_element
(raw_text) @css))
; inherits: html_tags
(
(style_element
@ -15,10 +14,7 @@
(quoted_attribute_value (attribute_value) @css))
(#eq? @_attr "style"))
((script_element
(raw_text) @javascript))
((raw_text_expr) @javascript)
(raw_text_expr) @javascript
(
(script_element