Skip to content

Commit

Permalink
chore: bump tree-sitter-c to 0.20.7
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Jan 24, 2024
1 parent a714740 commit 16874f1
Show file tree
Hide file tree
Showing 9 changed files with 485,625 additions and 372,562 deletions.
7 changes: 5 additions & 2 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ module.exports = grammar(C, {
[$._declaration_specifiers, $._constructor_specifiers],
[$._binary_fold_operator, $._fold_operator],
[$._function_declarator_seq],
[$._type_specifier, $.sized_type_specifier],
[$.initializer_pair, $.comma_expression],
],

inline: ($, original) => original.concat([
Expand Down Expand Up @@ -268,6 +270,7 @@ module.exports = grammar(C, {
field('base', choice(
alias($.qualified_type_identifier, $.qualified_identifier),
$._type_identifier,
$.primitive_type,
$.sized_type_specifier,
)),
)),
Expand Down Expand Up @@ -1269,11 +1272,11 @@ module.exports = grammar(C, {

this: _ => 'this',

concatenated_string: $ => seq(
concatenated_string: $ => prec.right(seq(
choice($.identifier, $.string_literal, $.raw_string_literal),
choice($.string_literal, $.raw_string_literal),
repeat(choice($.identifier, $.string_literal, $.raw_string_literal)),
),
)),

number_literal: $ => {
const sign = /[-\+]/;
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"author": "Max Brunsfeld",
"license": "MIT",
"dependencies": {
"nan": "^2.17.0"
"nan": "^2.18.0"
},
"devDependencies": {
"eslint": "^8.47.0",
"eslint": "^8.56.0",
"eslint-config-google": "^0.14.0",
"tree-sitter-c": "^0.20.6",
"tree-sitter-c": "^0.20.7",
"tree-sitter-cli": "^0.20.8"
},
"scripts": {
Expand Down
Loading

0 comments on commit 16874f1

Please sign in to comment.