summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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 00000000..f60e8b40
--- /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