diff options
| author | Philip Zander <philip.zander@gmail.com> | 2022-01-02 18:12:58 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-01-05 20:59:26 +0100 |
| commit | b05803402965395cfab2c3e9c0258f494dac377d (patch) | |
| tree | 47ae3ca2e9c70a1d356e0e9278846784086960da /tests/query | |
| parent | e81a60b6927521f7dc218ddb00e2c7fb6b1d797d (diff) | |
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.pas | 39 |
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 |
