refactor(vue, html): Update injections

Update html_tags injections so that html/vue/svelte parsers can use
it without having a script/style tag being captured twice

Signed-off-by: Pham Huy Hoang <hoangtun0810@gmail.com>
This commit is contained in:
Lucario387 2023-01-02 02:38:54 +09:00 committed by Stephan Seitz
parent 7951eb53f8
commit 6f4b9b190b
4 changed files with 126 additions and 63 deletions

View file

@ -1,12 +1 @@
((style_element
(raw_text) @css))
((attribute
(attribute_name) @_attr
(quoted_attribute_value (attribute_value) @css))
(#eq? @_attr "style"))
((script_element
(raw_text) @javascript))
(comment) @comment
; inherits html_tags