mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
r add new highlights
This commit is contained in:
parent
997c70b77b
commit
190bcc8d56
1 changed files with 42 additions and 13 deletions
|
|
@ -1,16 +1,25 @@
|
||||||
; highlights.scm
|
; highlights.scm
|
||||||
|
|
||||||
(call function: (identifier) @function)
|
(call function: (identifier) @function)
|
||||||
|
(call arguments:
|
||||||
|
(arguments
|
||||||
|
name: (identifier) @parameter ))
|
||||||
|
|
||||||
|
(lambda_function "\\" @operator)
|
||||||
|
|
||||||
(namespace_get function: (identifier) @method)
|
(namespace_get function: (identifier) @method)
|
||||||
(namespace_get_internal function: (identifier) @method)
|
(namespace_get_internal function: (identifier) @method)
|
||||||
(namespace_get namespace: (identifier) @namespace )
|
|
||||||
(namespace_get_internal namespace: (identifier) @namespace )
|
(namespace_get namespace: (identifier) @namespace
|
||||||
|
"::" @operator)
|
||||||
|
(namespace_get_internal namespace: (identifier) @namespace
|
||||||
|
":::" @operator)
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
|
|
||||||
(integer) @number
|
(integer) @number
|
||||||
|
|
||||||
(float) @number
|
(float) @float
|
||||||
|
|
||||||
(complex) @number
|
(complex) @number
|
||||||
|
|
||||||
|
|
@ -69,23 +78,43 @@
|
||||||
"}"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(dollar "$" @operator)
|
||||||
|
|
||||||
|
(subset2
|
||||||
|
"[[" @punctuation.bracket
|
||||||
|
"]]" @punctuation.bracket)
|
||||||
|
|
||||||
[
|
[
|
||||||
"while"
|
|
||||||
"if"
|
|
||||||
"else"
|
|
||||||
"repeat"
|
|
||||||
"for"
|
|
||||||
"in"
|
"in"
|
||||||
(dots)
|
(dots)
|
||||||
(true)
|
|
||||||
(false)
|
|
||||||
(break)
|
(break)
|
||||||
(next)
|
(next)
|
||||||
(inf)
|
(inf)
|
||||||
(nan)
|
|
||||||
(na)
|
|
||||||
(null)
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
(nan)
|
||||||
|
(na)
|
||||||
|
(null)
|
||||||
|
] @type.builtin
|
||||||
|
|
||||||
|
[
|
||||||
|
"if"
|
||||||
|
"else"
|
||||||
|
] @conditional
|
||||||
|
|
||||||
|
[
|
||||||
|
"while"
|
||||||
|
"repeat"
|
||||||
|
"for"
|
||||||
|
] @repeat
|
||||||
|
|
||||||
|
[
|
||||||
|
(true)
|
||||||
|
(false)
|
||||||
|
] @boolean
|
||||||
|
|
||||||
"function" @keyword.function
|
"function" @keyword.function
|
||||||
|
|
||||||
|
; Error
|
||||||
|
(ERROR) @error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue