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:
parent
617e9adaeb
commit
724abf12e8
|
@ -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"
|
||||||
|
|
|
@ -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 */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue