@willbooster/tree-sitter-c 6.0.0 → 6.0.1
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/grammar.js +8 -2
- package/package.json +1 -1
- package/src/node-types.json +4 -0
- package/tree-sitter-c.wasm +0 -0
- package/tree-sitter.json +1 -1
package/grammar.js
CHANGED
|
@@ -1336,8 +1336,14 @@ module.exports = Object.assign(
|
|
|
1336
1336
|
|
|
1337
1337
|
extension_expression: ($) => seq('__extension__', $.expression),
|
|
1338
1338
|
|
|
1339
|
-
//
|
|
1340
|
-
|
|
1339
|
+
// Compound statements, designated initializers, and a trailing comma parse macro arguments, e.g.
|
|
1340
|
+
// MYFORLOOP(1, 10, i, { foo(i); bar(i); }) and PARAMS(.foo = foo, .bar = { bar, 1 },)
|
|
1341
|
+
argument_list: ($) =>
|
|
1342
|
+
seq(
|
|
1343
|
+
'(',
|
|
1344
|
+
optional(seq(commaSep1(choice($.expression, $.compound_statement, $.initializer_pair)), optional(','))),
|
|
1345
|
+
')'
|
|
1346
|
+
),
|
|
1341
1347
|
|
|
1342
1348
|
field_expression: ($) =>
|
|
1343
1349
|
seq(
|
package/package.json
CHANGED
package/src/node-types.json
CHANGED
package/tree-sitter-c.wasm
CHANGED
|
Binary file
|