mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 07:50:07 -04:00
highlights(Pascal): Fix highlighting of types
A recent change broke highlighting for namespaces & generic types like `foo.bar` and `foo<t>`.
This commit is contained in:
parent
e81a60b692
commit
b058034029
2 changed files with 52 additions and 4 deletions
39
tests/query/highlights/pascal/test.pas
Normal file
39
tests/query/highlights/pascal/test.pas
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue