tree-sitter-c
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -37,1 +37,40 @@ ======================================== | ||
(declaration (primitive_type) (identifier))) | ||
======================================== | ||
Type modifiers | ||
======================================== | ||
void f(unsigned); | ||
void f(unsigned int); | ||
void f(unsigned long int); | ||
void f(unsigned v1); | ||
void f(unsigned long v2); | ||
--- | ||
(translation_unit | ||
(declaration | ||
(primitive_type) | ||
(function_declarator | ||
(identifier) | ||
(parameter_list (parameter_declaration (sized_type_specifier))))) | ||
(declaration | ||
(primitive_type) | ||
(function_declarator | ||
(identifier) | ||
(parameter_list (parameter_declaration (sized_type_specifier (primitive_type)))))) | ||
(declaration | ||
(primitive_type) | ||
(function_declarator | ||
(identifier) | ||
(parameter_list (parameter_declaration (sized_type_specifier (primitive_type)))))) | ||
(declaration | ||
(primitive_type) | ||
(function_declarator | ||
(identifier) | ||
(parameter_list (parameter_declaration (sized_type_specifier) (identifier))))) | ||
(declaration | ||
(primitive_type) | ||
(function_declarator | ||
(identifier) | ||
(parameter_list (parameter_declaration (sized_type_specifier) (identifier)))))) |
@@ -298,3 +298,6 @@ const PREC = { | ||
)), | ||
optional(choice($._type_identifier, $.primitive_type)) | ||
optional(choice( | ||
prec.dynamic(-1, $._type_identifier), | ||
$.primitive_type | ||
)) | ||
), | ||
@@ -301,0 +304,0 @@ |
{ | ||
"name": "tree-sitter-c", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"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
2878619
4431