tree-sitter-c
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -107,3 +107,4 @@ const PREC = { | ||
$.preproc_directive, | ||
$.preproc_arg | ||
optional(seq(/[ \t]+/, $.preproc_arg)), | ||
'\n' | ||
), | ||
@@ -176,3 +177,3 @@ | ||
preproc_directive: $ => /#[ \t]*\a\w*/, | ||
preproc_directive: $ => /#[ \t]*[a-zA-Z]\w*/, | ||
preproc_arg: $ => token(prec(-1, repeat1(choice(/./, '\\\n')))), | ||
@@ -754,3 +755,3 @@ | ||
identifier: $ => /[\a_][\a\d_]*/, | ||
identifier: $ => /[a-zA-Z_]\w*/, | ||
@@ -757,0 +758,0 @@ true: $ => token(prec(1, choice('TRUE', 'true'))), |
{ | ||
"name": "tree-sitter-c", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "C grammar for node-tree-sitter", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
3077069
4815