nvim-treesitter/tests/query/highlights/pascal/test.pas
Philip Zander b058034029 highlights(Pascal): Fix highlighting of types
A recent change broke highlighting for namespaces & generic types like
`foo.bar` and `foo<t>`.
2022-01-05 20:59:26 +01:00

39 lines
636 B
ObjectPascal

program foobar;
// ^ keyword
var
// <- keyword
foo: bar;
// ^ variable
// ^ type
foo: foo.bar<t>;
// ^ variable
// ^ type
// ^ type
// ^ type
begin
// ^ keyword
foo := bar;
// ^ variable
// ^ variable
foo;
// ^ function
foo();
// ^ function
foo(bar(xyz));
// ^ function
// ^ function
// ^ variable
xx + yy;
// ^ variable
// ^ variable
xx := y + z + func(a, b, c);
// ^ variable
// ^ variable
// ^ variable
// ^ function
// ^ variable
// ^ variable
// ^ variable
end.
// <- keyword