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

42 lines
701 B
Plaintext
Raw Normal View History

2022-06-02 22:27:42 +02:00
let
/* <- keyword */
var a := 12
/* <- keyword */
function f() : int = a
/* <- keyword.function */
2022-06-02 22:27:42 +02:00
primitive g()
/* <- keyword.function */
2022-06-02 22:27:42 +02:00
import "lib.tih"
2022-11-22 10:14:16 +01:00
/* <- include */
2022-06-02 22:27:42 +02:00
type array_of_int = array of int
/* <- keyword */
/* ^ keyword */
/* ^ keyword */
in
/* <- keyword */
12;
if 12 then 27 else 42;
/* <- keyword */
/* ^ keyword */
/* ^ keyword */
for i := 12 to 27 do 42;
/* <- keyword.repeat */
/* ^ keyword.repeat */
/* ^ keyword.repeat */
2022-06-02 22:27:42 +02:00
while 12 do break
/* <- keyword.repeat */
/* ^ keyword.repeat */
2022-06-02 22:27:42 +02:00
/* ^ keyword */
end
/* <- keyword */