tree-sitter-c
Advanced tools
Comparing version 0.13.1 to 0.13.2
@@ -91,3 +91,3 @@ const PREC = { | ||
$.identifier, | ||
optional(seq(/[ \t]+/, $.preproc_arg)), | ||
optional($.preproc_arg), | ||
'\n' | ||
@@ -105,3 +105,3 @@ ), | ||
preproc_params: $ => seq( | ||
'(', commaSep(choice($.identifier, '...')), ')' | ||
token.immediate('('), commaSep(choice($.identifier, '...')), ')' | ||
), | ||
@@ -111,3 +111,3 @@ | ||
$.preproc_directive, | ||
optional(seq(/[ \t]+/, $.preproc_arg)), | ||
optional($.preproc_arg), | ||
'\n' | ||
@@ -422,3 +422,3 @@ ), | ||
'if', | ||
'(', $._expression, ')', | ||
$.parenthesized_expression, | ||
$._statement, | ||
@@ -433,3 +433,3 @@ optional(seq( | ||
'switch', | ||
'(', $._expression, ')', | ||
$.parenthesized_expression, | ||
$._statement | ||
@@ -453,3 +453,3 @@ ), | ||
'while', | ||
'(', $._expression, ')', | ||
$.parenthesized_expression, | ||
$._statement | ||
@@ -462,3 +462,3 @@ ), | ||
'while', | ||
'(', $._expression, ')' | ||
$.parenthesized_expression | ||
), | ||
@@ -687,3 +687,3 @@ | ||
$.escape_sequence, | ||
/[^\n']/ | ||
token.immediate(/[^\n']/) | ||
), | ||
@@ -701,3 +701,3 @@ '\'' | ||
repeat(choice( | ||
token(prec(1, /[^\\"\n]/)), | ||
token.immediate(prec(1, /[^\\"\n]/)), | ||
$.escape_sequence | ||
@@ -708,3 +708,3 @@ )), | ||
escape_sequence: $ => token(seq( | ||
escape_sequence: $ => token.immediate(seq( | ||
'\\', | ||
@@ -711,0 +711,0 @@ choice( |
{ | ||
"name": "tree-sitter-c", | ||
"version": "0.13.1", | ||
"version": "0.13.2", | ||
"description": "C grammar for node-tree-sitter", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"tree-sitter-cli": "^0.13.1" | ||
"tree-sitter-cli": "^0.13.4" | ||
}, | ||
@@ -19,0 +19,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2353162
5077