Some checks failed
ci/woodpecker/push/check Pipeline failed
I fear the upstream queries may be broken, somehow, as they don't work with `--apply-all-captures` which should match the "last query wins" matching behaviour of `nvim-treesitter`. I also removed `locals.scm`, as `tree-sitter` and `nvim-treesitter` don't agree on how to write it, and I don't really care about it. It does mean that the highlights can't tell the difference between `int` the built-in and `int` the type alias anymore, but that's a small edge-case (and `nvim-treesitter` didn't support it anyway).
41 lines
708 B
Text
41 lines
708 B
Text
let
|
|
/* <- keyword */
|
|
|
|
var a := 12
|
|
/* <- keyword */
|
|
|
|
function f() : int = a
|
|
/* <- keyword.function */
|
|
primitive g()
|
|
/* <- keyword.function */
|
|
|
|
import "lib.tih"
|
|
/* <- keyword.import */
|
|
|
|
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 */
|