File: names.c

package info (click to toggle)
tree-sitter-c 0.24.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,876 kB
  • sloc: ansic: 124,187; javascript: 1,267; makefile: 101; python: 95; lisp: 76; cpp: 14; sh: 9
file content (33 lines) | stat: -rw-r--r-- 539 bytes parent folder | download | duplicates (2)
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
typedef struct {
  // ^ keyword
  //    ^ keyword
  a_t b;
  // <- type
  //  ^ property

  unsigned c_t (*d)[2];
  // ^ type
  //       ^ type
  //             ^ property
}, T, V;
// ^ type
//    ^ type

int main(const char string[SIZE]) {
// <- type
//  ^ function
//        ^ keyword
//             ^ type
//                   ^ variable
//                         ^ constant

  return foo.bar + foo.baz();
  // ^ keyword
  //     ^ variable
  //         ^ property
  //                   ^ function

error:
  // <- label
  return 0;
}