Add TS queries for vue,jsx,tsx

This commit is contained in:
Andy K. Massimino
2021-05-02 12:04:02 -04:00
parent 7b74e2130d
commit c7793f5045
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
(jsx_element) @scope.tag
(jsx_opening_element (identifier) @open.tag)
(jsx_closing_element (identifier) @close.tag)
(jsx_self_closing_element
name: (identifier) @open.selftag
"/" @_start ">" @_end
(#make-range! "close.selftag" @_start @_end)
) @scope.selftag

View File

@@ -0,0 +1 @@
; inherits: jsx

View File

@@ -0,0 +1,15 @@
[
(element)
(template_element)
(style_element)
(script_element)
] @scope.tag
(start_tag (tag_name) @open.tag)
(end_tag (tag_name) @close.tag)
(self_closing_element
name: (identifier) @open.selftag
"/" @_start ">" @_end
(#make-range! "close.selftag" @_start @_end)
) @scope.selftag