mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
highlights(tiger): fix captures
This commit is contained in:
parent
04e560490d
commit
353538d570
4 changed files with 7 additions and 11 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import "lib.tih"
|
||||
/* <- keyword */
|
||||
/* <- include */
|
||||
/* ^ string.special */
|
||||
/* vim: set ft=tiger: */
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ let
|
|||
/* <- keyword.function */
|
||||
|
||||
import "lib.tih"
|
||||
/* <- keyword */
|
||||
/* <- include */
|
||||
|
||||
type array_of_int = array of int
|
||||
/* <- keyword */
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue