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 {{{
[
"function"
"method"
"primitive"
] @keyword.function
@ -30,9 +31,6 @@
"new"
] @keyword.constructor
[
"method"
] @keyword.method
[
"import"

View File

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