mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
test(tiger): import upstream tests
This commit is contained in:
parent
ef385991b6
commit
6e3f888dc7
16 changed files with 454 additions and 0 deletions
29
tests/query/highlights/tiger/identifiers.tig
Normal file
29
tests/query/highlights/tiger/identifiers.tig
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
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
|
||||
/* ^ variable.parameter */
|
||||
/* ^ type.builtin */
|
||||
/* ^ variable.parameter */
|
||||
/* ^ type.builtin */
|
||||
/* ^ type */
|
||||
Loading…
Add table
Add a link
Reference in a new issue