tree-sitter-tiger/test/highlight/identifiers.tig
Bruno BELANYI 45eb3e860c Use 'parameter' high-light group
To align with neovim's usage, use `parameter` instead of
`variable.parameter`.
2022-11-22 10:57:06 +01:00

30 lines
795 B
Plaintext

type int = int
/* ^ variable */
/* ^ type.builtin */
type int_array = array of int
/* ^ type.builtin */
type record = {a: int, b: string}
/* ^ property */
/* ^ type.builtin */
/* ^ property */
/* ^ type.builtin */
var record := record {a = 12, b = "27"}
/* ^ variable */
/* ^ type */
/* ^ property */
/* ^ property */
var array := int_array[12] of 27;
/* ^ variable */
/* ^ type */
primitive func(a: int, b: string) : array
/* ^ parameter */
/* ^ type.builtin */
/* ^ parameter */
/* ^ type.builtin */
/* ^ type */