mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
Reorganise slightly
This commit is contained in:
parent
f6c6d0d947
commit
688ec2f6a0
1 changed files with 20 additions and 5 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
;; >> Litterals
|
||||||
|
|
||||||
(dis_expr) @comment
|
(dis_expr) @comment
|
||||||
|
|
||||||
(kwd_lit) @symbol
|
(kwd_lit) @symbol
|
||||||
|
|
@ -16,6 +18,24 @@
|
||||||
|
|
||||||
(regex_lit) @string.regex
|
(regex_lit) @string.regex
|
||||||
|
|
||||||
|
(quoting_lit
|
||||||
|
marker: "'" @string.escape)
|
||||||
|
|
||||||
|
(syn_quoting_lit
|
||||||
|
marker: "`" @string.escape)
|
||||||
|
|
||||||
|
(set_lit
|
||||||
|
marker: "#" @punctuation.special)
|
||||||
|
|
||||||
|
(anon_fn_lit
|
||||||
|
marker: "#" @punctuation.special)
|
||||||
|
|
||||||
|
["{" "}" "[" "]" "(" ")"] @punctuation.bracket
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;; >> Symbols
|
||||||
|
|
||||||
;; metadata experiment
|
;; metadata experiment
|
||||||
(meta_lit
|
(meta_lit
|
||||||
marker: "^" @punctuation.special)
|
marker: "^" @punctuation.special)
|
||||||
|
|
@ -72,10 +92,5 @@
|
||||||
((sym_lit) @variable
|
((sym_lit) @variable
|
||||||
(#match? @variable "\\."))
|
(#match? @variable "\\."))
|
||||||
|
|
||||||
;; quote
|
|
||||||
(quoting_lit) @string.escape
|
|
||||||
|
|
||||||
;; syntax quote
|
|
||||||
(syn_quoting_lit) @string.escape
|
|
||||||
|
|
||||||
["{" "}" "[" "]" "(" ")"] @punctuation.bracket
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue