mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
some refacto, doc fixes and jsx queries
- compute query language extensions *after* default ones (jsx after javascript) - remove outdated ts_utils functions from docs - add better regex detection to javascript - javascriptreact to use javascript queries - add javascript.jsx to javascript queries - write jsx.scm hl file
This commit is contained in:
parent
a5c89f3762
commit
20e448882e
5 changed files with 18 additions and 33 deletions
|
|
@ -103,7 +103,8 @@
|
|||
(null) @constant.builtin
|
||||
(comment) @comment
|
||||
(string) @string
|
||||
(regex) @string.special
|
||||
(regex) @punctuation.delimiter
|
||||
(regex_pattern) @string.regex
|
||||
(template_string) @string
|
||||
(number) @number
|
||||
|
||||
|
|
|
|||
9
queries/javascript/jsx.scm
Normal file
9
queries/javascript/jsx.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
(jsx_element
|
||||
open_tag: (jsx_opening_element ["<" ">"] @operator))
|
||||
(jsx_element
|
||||
close_tag: (jsx_closing_element ["<" "/" ">"] @operator))
|
||||
|
||||
(jsx_closing_element name: (identifier) @variable.builtin)
|
||||
(jsx_opening_element name: (identifier) @variable.builtin)
|
||||
|
||||
(jsx_text) @none
|
||||
Loading…
Add table
Add a link
Reference in a new issue