Use @keyword.function consistently

This commit is contained in:
Sergio Alejandro Vargas 2021-07-05 15:04:42 -05:00 committed by Stephan Seitz
parent 017760113a
commit 820b4a9c21
6 changed files with 11 additions and 6 deletions

View file

@ -66,9 +66,10 @@
"local"
"readonly"
"unset"
"function"
] @keyword
"function" @keyword.function
(special_variable_name) @constant
((word) @constant.builtin

View file

@ -88,7 +88,6 @@
"continue"
"default"
"defer"
"func"
"go"
"goto"
"interface"
@ -101,6 +100,7 @@
"fallthrough"
] @keyword
"func" @keyword.function
"return" @keyword.return
"for" @repeat

View file

@ -115,12 +115,12 @@
"var"
"break"
"by"
"fun"
"companion"
"constructor"
"throw"
] @keyword
"fun" @keyword.function
"return" @keyword.return
(null_literal) @keyword

View file

@ -93,12 +93,14 @@
[
"and" "as" "assert" "begin" "class" "constraint"
"end" "external" "fun" "function" "functor" "in"
"end" "external" "in"
"inherit" "initializer" "lazy" "let" "match" "method" "module"
"mutable" "new" "nonrec" "object" "of" "private" "rec" "sig" "struct"
"type" "val" "virtual" "when" "with"
] @keyword
["fun" "function" "functor"] @keyword.function
["if" "then" "else"] @conditional
["exception" "try"] @exception

View file

@ -70,7 +70,6 @@
"while"
"if"
"else"
"function"
"repeat"
"for"
"in"
@ -84,3 +83,6 @@
(na)
(null)
] @keyword
"function" @keyword.function

View file

@ -3,7 +3,6 @@
[
"module"
"endmodule"
"function"
"endfunction"
"task"
"endtask"
@ -27,6 +26,7 @@
"assert"
] @keyword
"function" @keyword.function
"return" @keyword.return
[