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" "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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
[ [