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

42 lines
701 B
Plaintext

let
/* <- keyword */
var a := 12
/* <- keyword */
function f() : int = a
/* <- keyword.function */
primitive g()
/* <- keyword.function */
import "lib.tih"
/* <- keyword */
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 */
while 12 do break
/* <- keyword.repeat */
/* ^ keyword.repeat */
/* ^ keyword */
end
/* <- keyword */