tree-sitter-tiger/test/highlight/identifiers.tig

30 lines
765 B
Plaintext

type int = int
/* ^ variable */
/* ^ type */
type int_array = array of int
/* ^ type */
type record = {a: int, b: string}
/* ^ property */
/* ^ type */
/* ^ property */
/* ^ type */
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
/* ^ variable.parameter */
/* ^ type */
/* ^ variable.parameter */
/* ^ type */
/* ^ type */