nvim-treesitter/tests/query/highlights/pascal/test.pas
2024-01-19 16:58:37 +01:00

39 lines
662 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