aboutsummaryrefslogtreecommitdiffstats
path: root/queries/html
diff options
context:
space:
mode:
authorLucario387 <hoangtun0810@gmail.com>2023-01-02 02:38:54 +0900
committerStephan Seitz <stephan.seitz@fau.de>2023-01-03 12:05:10 +0100
commit6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3 (patch)
treeb8c60657ad04717f5ba2ff33e7034400916e71b0 /queries/html
parentUpdate parsers: scala (diff)
downloadnvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.tar
nvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.tar.gz
nvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.tar.bz2
nvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.tar.lz
nvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.tar.xz
nvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.tar.zst
nvim-treesitter-6f4b9b190baaa4c10d8e60108ceb61b486f6e1a3.zip
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>
Diffstat (limited to 'queries/html')
-rw-r--r--queries/html/injections.scm13
1 files changed, 1 insertions, 12 deletions
diff --git a/queries/html/injections.scm b/queries/html/injections.scm
index 682431195..7ddb5beae 100644
--- a/queries/html/injections.scm
+++ b/queries/html/injections.scm
@@ -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