Fix 'method' keyword high-lighting

It makes more sense to add it to `keyword.function`, neovim does not
have a `keyword.method` category, and `method` is for the method name
itself.
This commit is contained in:
Bruno BELANYI 2022-11-22 10:28:29 +01:00
parent 617e9adaeb
commit 724abf12e8
2 changed files with 2 additions and 4 deletions

View file

@ -16,6 +16,7 @@
; Keywords {{{ ; Keywords {{{
[ [
"function" "function"
"method"
"primitive" "primitive"
] @keyword.function ] @keyword.function
@ -30,9 +31,6 @@
"new" "new"
] @keyword.constructor ] @keyword.constructor
[
"method"
] @keyword.method
[ [
"import" "import"

View file

@ -12,7 +12,7 @@ let
var a := 12 var a := 12
method meth() : int = self.a method meth() : int = self.a
/* <- keyword.method */ /* <- keyword.function */
/* ^ method */ /* ^ method */
/* ^ variable.builtin */ /* ^ variable.builtin */
} }