tree-sitter-tiger/test/highlight/built-ins.tig
Bruno BELANYI 2d89ec8b20
All checks were successful
continuous-integration/drone/push Build is passing
Add built-in functions
This is a good proxy test to ensure that scope queries work correctly.
2022-06-03 21:09:11 +02:00

20 lines
307 B
Plaintext

let
var a := exit(0)
/* ^ function.builtin */
primitive exit(ret: int) /* Shadowing the prelude-included built-in */
var b := exit(0)
/* ^ function */
in
exit(1);
/* <- function */
print("shadowing is fun");
/* <- function.builtin */
b := print
/* ^ variable */
end