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

49 lines
950 B
Plaintext
Raw Normal View History

2022-06-03 11:43:43 +02:00
let
var a : int := 42
/* ^ punctuation.delimiter */
/* ^ operator */
in
(
/* <- punctuation.bracket */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
-1 | 2 & 3 + 4 * 5;
/* <- operator */
/* ^ operator */
/* ^ operator */
/* ^ operator */
/* ^ operator */
/* ^ punctuation.delimiter */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
12 >= 27;
/* ^ operator */
12 <= 27;
/* ^ operator */
12 = 27;
/* ^ operator */
12 <> 27;
/* ^ operator */
12 < 27;
/* ^ operator */
12 > 27;
/* ^ operator */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
record.field;
/* ^ punctuation.delimiter */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
func(a, b);
/* ^ punctuation.bracket */
/* ^ punctuation.bracket */
/* ^ punctuation.delimiter */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
record_type { };
/* ^ punctuation.bracket */
/* ^ punctuation.bracket */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
array[42]
/* ^ punctuation.bracket */
/* ^ punctuation.bracket */
2022-06-03 10:08:58 +02:00
2022-06-03 11:43:43 +02:00
)
/* <- punctuation.bracket */
end