tree-sitter-c
Advanced tools
Comparing version 0.21.4 to 0.23.0
@@ -55,2 +55,3 @@ /** | ||
[$.type_specifier, $._top_level_expression_statement], | ||
[$.type_qualifier, $.extension_expression], | ||
], | ||
@@ -579,2 +580,3 @@ | ||
'noreturn', | ||
'_Nonnull', | ||
$.alignas_qualifier, | ||
@@ -755,3 +757,6 @@ ), | ||
'(', | ||
commaSep(choice($.parameter_declaration, $.variadic_parameter)), | ||
choice( | ||
commaSep(choice($.parameter_declaration, $.variadic_parameter)), | ||
$.compound_statement, | ||
), | ||
')', | ||
@@ -823,3 +828,3 @@ ), | ||
':', | ||
$.statement, | ||
choice($.declaration, $.statement), | ||
), | ||
@@ -972,2 +977,3 @@ | ||
$.gnu_asm_expression, | ||
$.extension_expression, | ||
), | ||
@@ -1126,3 +1132,3 @@ | ||
gnu_asm_expression: $ => prec(PREC.CALL, seq( | ||
choice('asm', '__asm__'), | ||
choice('asm', '__asm__', '__asm'), | ||
repeat($.gnu_asm_qualifier), | ||
@@ -1194,4 +1200,6 @@ '(', | ||
extension_expression: $ => seq('__extension__', $.expression), | ||
// The compound_statement is added to parse macros taking statements as arguments, e.g. MYFORLOOP(1, 10, i, { foo(i); bar(i); }) | ||
argument_list: $ => seq('(', commaSep(choice(seq(optional('__extension__'), $.expression), $.compound_statement)), ')'), | ||
argument_list: $ => seq('(', commaSep(choice($.expression, $.compound_statement)), ')'), | ||
@@ -1215,3 +1223,3 @@ field_expression: $ => seq( | ||
'(', | ||
choice($.expression, $.comma_expression), | ||
choice($.expression, $.comma_expression, $.compound_statement), | ||
')', | ||
@@ -1218,0 +1226,0 @@ ), |
{ | ||
"name": "tree-sitter-c", | ||
"version": "0.21.4", | ||
"version": "0.23.0", | ||
"description": "C grammar for tree-sitter", | ||
@@ -8,3 +8,3 @@ "repository": "github:tree-sitter/tree-sitter-c", | ||
"author": "Max Brunsfeld <maxbrunsfeld@gmail.com>", | ||
"contributors": [ | ||
"maintainers": [ | ||
"Amaan Qureshi <amaanq12@gmail.com>" | ||
@@ -29,5 +29,11 @@ ], | ||
"dependencies": { | ||
"node-addon-api": "^8.0.0", | ||
"node-gyp-build": "^4.8.1" | ||
"node-addon-api": "^8.1.0", | ||
"node-gyp-build": "^4.8.2" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.57.0", | ||
"eslint-config-google": "^0.14.0", | ||
"prebuildify": "^6.0.1", | ||
"tree-sitter-cli": "^0.23.0" | ||
}, | ||
"peerDependencies": { | ||
@@ -37,20 +43,12 @@ "tree-sitter": "^0.21.0" | ||
"peerDependenciesMeta": { | ||
"tree_sitter": { | ||
"tree-sitter": { | ||
"optional": true | ||
} | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.57.0", | ||
"eslint-config-google": "^0.14.0", | ||
"prebuildify": "^6.0.1", | ||
"tree-sitter-cli": "^0.22.6" | ||
}, | ||
"scripts": { | ||
"install": "node-gyp-build", | ||
"prebuildify": "prebuildify --napi --strip", | ||
"build": "tree-sitter generate --no-bindings", | ||
"build-wasm": "tree-sitter build --wasm", | ||
"lint": "eslint grammar.js", | ||
"parse": "tree-sitter parse", | ||
"test": "tree-sitter test" | ||
"prestart": "tree-sitter build --wasm", | ||
"start": "tree-sitter playground", | ||
"test": "node --test bindings/node/*_test.js" | ||
}, | ||
@@ -57,0 +55,0 @@ "tree-sitter": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6854398
21
15635
Updatednode-addon-api@^8.1.0
Updatednode-gyp-build@^4.8.2