highlights(tiger): fix captures

This commit is contained in:
ObserverOfTime 2022-10-22 18:19:44 +03:00
parent 04e560490d
commit 353538d570
4 changed files with 7 additions and 11 deletions

View file

@ -23,6 +23,7 @@
[
"function"
"primitive"
"method"
] @keyword.function
[
@ -32,13 +33,9 @@
"while"
] @repeat
[
"new"
] @constructor
"new" @keyword.operator
[
"method"
] @method
"import" @include
[
"array"
@ -46,7 +43,6 @@
"else"
"end"
"if"
"import"
"in"
"let"
"of"

View file

@ -1,4 +1,4 @@
import "lib.tih"
/* <- keyword */
/* <- include */
/* ^ string.special */
/* vim: set ft=tiger: */

View file

@ -10,7 +10,7 @@ let
/* <- keyword.function */
import "lib.tih"
/* <- keyword */
/* <- include */
type array_of_int = array of int
/* <- keyword */

View file

@ -12,13 +12,13 @@ let
var a := 12
method meth() : int = self.a
/* <- method */
/* <- keyword.function */
/* ^ method */
/* ^ variable.builtin */
}
var object := new B
/* ^ constructor */
/* ^ keyword.operator */
in
object.a := 27;
/* ^ property */