aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query
diff options
context:
space:
mode:
authorPhilip Zander <philip.zander@gmail.com>2022-01-02 18:12:58 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-01-05 20:59:26 +0100
commitb05803402965395cfab2c3e9c0258f494dac377d (patch)
tree47ae3ca2e9c70a1d356e0e9278846784086960da /tests/query
parentfix: Remove pi_statement from highlight to sync up with upstream change (diff)
downloadnvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.tar
nvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.tar.gz
nvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.tar.bz2
nvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.tar.lz
nvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.tar.xz
nvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.tar.zst
nvim-treesitter-b05803402965395cfab2c3e9c0258f494dac377d.zip
highlights(Pascal): Fix highlighting of types
A recent change broke highlighting for namespaces & generic types like `foo.bar` and `foo<t>`.
Diffstat (limited to 'tests/query')
-rw-r--r--tests/query/highlights/pascal/test.pas39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/query/highlights/pascal/test.pas b/tests/query/highlights/pascal/test.pas
new file mode 100644
index 000000000..f60e8b40b
--- /dev/null
+++ b/tests/query/highlights/pascal/test.pas
@@ -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