Add methods high-lighting
This commit is contained in:
parent
555e10c736
commit
425890a6fc
|
@ -75,7 +75,7 @@
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
; }}}
|
; }}}
|
||||||
|
|
||||||
; Functions {{{
|
; Functions and methods {{{
|
||||||
(function_call
|
(function_call
|
||||||
function: (identifier) @function)
|
function: (identifier) @function)
|
||||||
(function_declaration
|
(function_declaration
|
||||||
|
@ -83,6 +83,11 @@
|
||||||
(primitive_declaration
|
(primitive_declaration
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
|
|
||||||
|
(method_call
|
||||||
|
method: (identifier) @method)
|
||||||
|
(method_declaration
|
||||||
|
name: (identifier) @method)
|
||||||
|
|
||||||
(parameters
|
(parameters
|
||||||
name: (identifier) @variable.parameter)
|
name: (identifier) @variable.parameter)
|
||||||
; }}}
|
; }}}
|
||||||
|
|
|
@ -13,6 +13,7 @@ let
|
||||||
|
|
||||||
method meth() : int = self.a
|
method meth() : int = self.a
|
||||||
/* <- keyword */
|
/* <- keyword */
|
||||||
|
/* ^ method */
|
||||||
/* ^ variable */
|
/* ^ variable */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,4 +22,7 @@ let
|
||||||
in
|
in
|
||||||
object.a := 27;
|
object.a := 27;
|
||||||
/* ^ property */
|
/* ^ property */
|
||||||
|
|
||||||
|
object.meth()
|
||||||
|
/* ^ method */
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue