From b05803402965395cfab2c3e9c0258f494dac377d Mon Sep 17 00:00:00 2001 From: Philip Zander Date: Sun, 2 Jan 2022 18:12:58 +0100 Subject: highlights(Pascal): Fix highlighting of types A recent change broke highlighting for namespaces & generic types like `foo.bar` and `foo`. --- tests/query/highlights/pascal/test.pas | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/query/highlights/pascal/test.pas (limited to 'tests/query') 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; +// ^ 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 -- cgit v1.2.3