Bruno BELANYI
724abf12e8
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.
29 lines
535 B
Plaintext
29 lines
535 B
Plaintext
let
|
|
class A extends Object {}
|
|
/* <- keyword */
|
|
/* ^ keyword */
|
|
/* ^ type.builtin */
|
|
|
|
type B = class extends A {
|
|
/* ^ keyword */
|
|
/* ^ keyword */
|
|
/* ^ type */
|
|
|
|
var a := 12
|
|
|
|
method meth() : int = self.a
|
|
/* <- keyword.function */
|
|
/* ^ method */
|
|
/* ^ variable.builtin */
|
|
}
|
|
|
|
var object := new B
|
|
/* ^ keyword.constructor */
|
|
in
|
|
object.a := 27;
|
|
/* ^ property */
|
|
|
|
object.meth()
|
|
/* ^ method */
|
|
end
|