mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
Use @keyword.function consistently
This commit is contained in:
parent
017760113a
commit
820b4a9c21
6 changed files with 11 additions and 6 deletions
|
|
@ -66,9 +66,10 @@
|
||||||
"local"
|
"local"
|
||||||
"readonly"
|
"readonly"
|
||||||
"unset"
|
"unset"
|
||||||
"function"
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
"function" @keyword.function
|
||||||
|
|
||||||
(special_variable_name) @constant
|
(special_variable_name) @constant
|
||||||
|
|
||||||
((word) @constant.builtin
|
((word) @constant.builtin
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,6 @@
|
||||||
"continue"
|
"continue"
|
||||||
"default"
|
"default"
|
||||||
"defer"
|
"defer"
|
||||||
"func"
|
|
||||||
"go"
|
"go"
|
||||||
"goto"
|
"goto"
|
||||||
"interface"
|
"interface"
|
||||||
|
|
@ -101,6 +100,7 @@
|
||||||
"fallthrough"
|
"fallthrough"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
"func" @keyword.function
|
||||||
"return" @keyword.return
|
"return" @keyword.return
|
||||||
|
|
||||||
"for" @repeat
|
"for" @repeat
|
||||||
|
|
|
||||||
|
|
@ -115,12 +115,12 @@
|
||||||
"var"
|
"var"
|
||||||
"break"
|
"break"
|
||||||
"by"
|
"by"
|
||||||
"fun"
|
|
||||||
"companion"
|
"companion"
|
||||||
"constructor"
|
"constructor"
|
||||||
"throw"
|
"throw"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
"fun" @keyword.function
|
||||||
"return" @keyword.return
|
"return" @keyword.return
|
||||||
|
|
||||||
(null_literal) @keyword
|
(null_literal) @keyword
|
||||||
|
|
|
||||||
|
|
@ -93,12 +93,14 @@
|
||||||
|
|
||||||
[
|
[
|
||||||
"and" "as" "assert" "begin" "class" "constraint"
|
"and" "as" "assert" "begin" "class" "constraint"
|
||||||
"end" "external" "fun" "function" "functor" "in"
|
"end" "external" "in"
|
||||||
"inherit" "initializer" "lazy" "let" "match" "method" "module"
|
"inherit" "initializer" "lazy" "let" "match" "method" "module"
|
||||||
"mutable" "new" "nonrec" "object" "of" "private" "rec" "sig" "struct"
|
"mutable" "new" "nonrec" "object" "of" "private" "rec" "sig" "struct"
|
||||||
"type" "val" "virtual" "when" "with"
|
"type" "val" "virtual" "when" "with"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
["fun" "function" "functor"] @keyword.function
|
||||||
|
|
||||||
["if" "then" "else"] @conditional
|
["if" "then" "else"] @conditional
|
||||||
|
|
||||||
["exception" "try"] @exception
|
["exception" "try"] @exception
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,6 @@
|
||||||
"while"
|
"while"
|
||||||
"if"
|
"if"
|
||||||
"else"
|
"else"
|
||||||
"function"
|
|
||||||
"repeat"
|
"repeat"
|
||||||
"for"
|
"for"
|
||||||
"in"
|
"in"
|
||||||
|
|
@ -84,3 +83,6 @@
|
||||||
(na)
|
(na)
|
||||||
(null)
|
(null)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
|
||||||
|
"function" @keyword.function
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@
|
||||||
[
|
[
|
||||||
"module"
|
"module"
|
||||||
"endmodule"
|
"endmodule"
|
||||||
"function"
|
|
||||||
"endfunction"
|
"endfunction"
|
||||||
"task"
|
"task"
|
||||||
"endtask"
|
"endtask"
|
||||||
|
|
@ -27,6 +26,7 @@
|
||||||
"assert"
|
"assert"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
"function" @keyword.function
|
||||||
"return" @keyword.return
|
"return" @keyword.return
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue