aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/pascal/test.pas
blob: f60e8b40b950cb851a4b2f4cc990038170f3205a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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