nvim-treesitter/tests/query/highlights/pascal/test.pas

40 lines
662 B
ObjectPascal
Raw Normal View History

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