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
48
tests/query/highlights/tiger/operators.tig
Normal file
48
tests/query/highlights/tiger/operators.tig
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
let
|
||||
var a : int := 42
|
||||
/* ^ punctuation.delimiter */
|
||||
/* ^ operator */
|
||||
in
|
||||
(
|
||||
/* <- punctuation.bracket */
|
||||
|
||||
-1 | 2 & 3 + 4 * 5;
|
||||
/* <- operator */
|
||||
/* ^ operator */
|
||||
/* ^ operator */
|
||||
/* ^ operator */
|
||||
/* ^ operator */
|
||||
/* ^ punctuation.delimiter */
|
||||
|
||||
12 >= 27;
|
||||
/* ^ operator */
|
||||
12 <= 27;
|
||||
/* ^ operator */
|
||||
12 = 27;
|
||||
/* ^ operator */
|
||||
12 <> 27;
|
||||
/* ^ operator */
|
||||
12 < 27;
|
||||
/* ^ operator */
|
||||
12 > 27;
|
||||
/* ^ operator */
|
||||
|
||||
record.field;
|
||||
/* ^ punctuation.delimiter */
|
||||
|
||||
func(a, b);
|
||||
/* ^ punctuation.bracket */
|
||||
/* ^ punctuation.bracket */
|
||||
/* ^ punctuation.delimiter */
|
||||
|
||||
record_type { };
|
||||
/* ^ punctuation.bracket */
|
||||
/* ^ punctuation.bracket */
|
||||
|
||||
array[42]
|
||||
/* ^ punctuation.bracket */
|
||||
/* ^ punctuation.bracket */
|
||||
|
||||
)
|
||||
/* <- punctuation.bracket */
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue