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).
29 lines
841 B
Text
29 lines
841 B
Text
type int = int
|
|
/* ^ variable */
|
|
/* ^ type.builtin */
|
|
|
|
type int_array = array of int
|
|
/* ^ type.builtin */
|
|
|
|
type record = {a: int, b: string}
|
|
/* ^ variable.member */
|
|
/* ^ type.builtin */
|
|
/* ^ variable.member */
|
|
/* ^ type.builtin */
|
|
|
|
var record := record {a = 12, b = "27"}
|
|
/* ^ variable */
|
|
/* ^ type */
|
|
/* ^ variable.member */
|
|
/* ^ variable.member */
|
|
|
|
var array := int_array[12] of 27;
|
|
/* ^ variable */
|
|
/* ^ type */
|
|
|
|
primitive func(a: int, b: string) : array
|
|
/* ^ variable.parameter */
|
|
/* ^ type.builtin */
|
|
/* ^ variable.parameter */
|
|
/* ^ type.builtin */
|
|
/* ^ type */
|