@willbooster/tree-sitter-c 36.0.0 → 37.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c",
3
- "version": "36.0.0",
3
+ "version": "37.0.0",
4
4
  "description": "C grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "c",
@@ -1,4 +1,4 @@
1
1
  // @ts-check
2
2
 
3
3
  // oxlint-disable-next-line unicorn/prefer-module -- Tree-sitter loads grammar dependencies as CommonJS.
4
- module.exports = { primitiveTypeKeywords: ['bool', 'char', 'int', 'float', 'double', 'void'] };
4
+ module.exports = { primitiveTypeKeywords: ['_Bool', 'bool', 'char', 'int', 'float', 'double', 'void'] };
package/src/keywords.h CHANGED
@@ -9,6 +9,7 @@ static const char *const function_macro_keywords[] = {
9
9
  "_Alignof",
10
10
  "_Atomic",
11
11
  "_BitInt",
12
+ "_Bool",
12
13
  "_Complex",
13
14
  "_Countof",
14
15
  "_Defer",
@@ -148,6 +149,7 @@ static const char *const function_macro_group_modifiers[] = {
148
149
  static const char *const function_macro_type_keywords[] = {
149
150
  "_Atomic",
150
151
  "_BitInt",
152
+ "_Bool",
151
153
  "_Complex",
152
154
  "_Imaginary",
153
155
  "__complex__",
@@ -192,6 +194,7 @@ static const char *const function_macro_type_keywords[] = {
192
194
  "void",
193
195
  };
194
196
  static const char *const function_macro_scalar_type_keywords[] = {
197
+ "_Bool",
195
198
  "bool",
196
199
  "char",
197
200
  "char16_t",
@@ -222,6 +225,7 @@ static const char *const function_macro_scalar_type_keywords[] = {
222
225
  static const char *const function_macro_object_prefix_keywords[] = {
223
226
  "_Alignas",
224
227
  "_Atomic",
228
+ "_Bool",
225
229
  "_Complex",
226
230
  "_Imaginary",
227
231
  "_Nonnull",
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "36.0.0",
27
+ "version": "37.0.0",
28
28
  "license": "MIT",
29
29
  "description": "C grammar for tree-sitter",
30
30
  "authors": [