@willbooster/tree-sitter-c 19.0.0 → 21.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,122 +0,0 @@
1
- (identifier) @variable
2
-
3
- ((identifier) @constant
4
- (#match? @constant "^[A-Z][A-Z\\d_]*$"))
5
-
6
- ((storage_class_specifier) @keyword
7
- (#eq? @keyword "auto"))
8
- "_Countof" @keyword
9
- "_Defer" @keyword
10
- "_Generic" @keyword
11
- "_Thread_local" @keyword
12
- "break" @keyword
13
- "case" @keyword
14
- "const" @keyword
15
- "continue" @keyword
16
- "default" @keyword
17
- "do" @keyword
18
- "else" @keyword
19
- "enum" @keyword
20
- "extern" @keyword
21
- "for" @keyword
22
- "goto" @keyword
23
- "if" @keyword
24
- "inline" @keyword
25
- "return" @keyword
26
- "sizeof" @keyword
27
- "static" @keyword
28
- "struct" @keyword
29
- "switch" @keyword
30
- "typedef" @keyword
31
- "union" @keyword
32
- "volatile" @keyword
33
- "while" @keyword
34
-
35
- "#define" @keyword
36
- "#elif" @keyword
37
- "#elifdef" @keyword
38
- "#elifndef" @keyword
39
- "#else" @keyword
40
- "#endif" @keyword
41
- "#if" @keyword
42
- "#ifdef" @keyword
43
- "#ifndef" @keyword
44
- "#include" @keyword
45
- (preproc_directive) @keyword
46
-
47
- "--" @operator
48
- "-" @operator
49
- "-=" @operator
50
- "->" @operator
51
- "=" @operator
52
- "!=" @operator
53
- "*" @operator
54
- "&" @operator
55
- "&&" @operator
56
- "+" @operator
57
- "++" @operator
58
- "+=" @operator
59
- "<" @operator
60
- "==" @operator
61
- ">" @operator
62
- "||" @operator
63
- "*=" @operator
64
- "/=" @operator
65
- "%=" @operator
66
- "<<=" @operator
67
- ">>=" @operator
68
- "&=" @operator
69
- "|=" @operator
70
- "^=" @operator
71
- "/" @operator
72
- "%" @operator
73
- "<=" @operator
74
- ">=" @operator
75
- "<<" @operator
76
- ">>" @operator
77
- "|" @operator
78
- "^" @operator
79
- "~" @operator
80
- "!" @operator
81
-
82
- (conditional_expression
83
- ["?" ":"] @operator)
84
-
85
- (field_expression
86
- operator: "." @operator)
87
-
88
- (field_designator "." @delimiter)
89
- ";" @delimiter
90
-
91
- (string_literal) @string
92
- (raw_string_literal) @string
93
- (system_lib_string) @string
94
-
95
- (null) @constant
96
- (number_literal) @number
97
- (char_literal) @number
98
-
99
- (field_identifier) @property
100
- (statement_identifier) @label
101
- (type_identifier) @type
102
- (primitive_type) @type
103
- (sized_type_specifier) @type
104
-
105
- (call_expression
106
- function: (identifier) @function)
107
- (call_expression
108
- function: (field_expression
109
- field: (field_identifier) @function))
110
- (function_declarator
111
- declarator: (identifier) @function)
112
- (preproc_function_def
113
- name: (identifier) @function.special)
114
-
115
- (comment) @comment
116
-
117
- (typeof_specifier
118
- ["typeof" "typeof_unqual" "__typeof__" "__typeof" "__typeof_unqual" "__typeof_unqual__"] @keyword)
119
- (bit_int_specifier "_BitInt" @type)
120
- (pragma_operator) @keyword
121
-
122
- (va_arg_expression ["va_arg" "__builtin_va_arg"] @keyword)
package/queries/tags.scm DELETED
@@ -1,9 +0,0 @@
1
- (struct_specifier name: (type_identifier) @name body:(_)) @definition.class
2
-
3
- (declaration type: (union_specifier name: (type_identifier) @name)) @definition.class
4
-
5
- (function_declarator declarator: (identifier) @name) @definition.function
6
-
7
- (type_definition declarator: (type_identifier) @name) @definition.type
8
-
9
- (enum_specifier name: (type_identifier) @name) @definition.type