aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/pascal/test.pas
blob: 3a6cc786a7c10cb7e0a36ff478d019dd883c18c7 (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