Amaan Qureshi
f0db9dfc82
chore: generate
3 years ago
Ismail A Bella
94bc261b1a
fix: allow multiple expressions inside for_statement condition
4 years ago
John Drouhard
179b70c6be
Attributes: simplify attributed_statement by making it a valid type of non-case statement
This also lets it bind to _any_ statement, which is necessary for some
c++ attributes that can attach to the statement in if, while, and
do/while statements.
4 years ago
Ben Dunkin
517bf92b2c
add the body label to for loops to make it the same as other loops ( #110 )
4 years ago
John Drouhard
f71e80b9f2
Extract "..." into a named node called variadic_parameter. Fixes #73
4 years ago
jdrouhard
9bee34500c
Support attribute statements under case statements ( #83 )
4 years ago
John Drouhard
0b714a5134
rename attribute_definition to attribute_declaration
4 years ago
jdrouhard
8fc135a72b
Add support for C23 attributes ( #81 )
* Add support for C23 attributes
https://en.cppreference.com/w/c/language/attributes
* Use wrapper for statements with attributes to reduce state machine size
* Missed a couple _declarators that needed attributes directly after
* Use annotated_declarator for declarators that have attributes immediately following them
* Give field and type declarators the same attribute treatment
4 years ago
berchn
008008e30a
Add operator field to field_expression ( #69 )
5 years ago
berchn
25fb87ce98
Add operation field to assignment_expression ( #68 )
5 years ago
Max Brunsfeld
8d4631b673
⬆️ tree-sitter-cli to 0.18
5 years ago
Mathieu Nayrolles
88592f162e
Add support for Microsoft-specific modifiers ( #40 )
* Add support for Microsoft-specific modifiers
Microsoft-specific modifiers are keywords can be used to modify declarators to form derived types.
The specification for the modifiers themselves is here:
https://docs.microsoft.com/en-us/cpp/cpp/microsoft-specific-modifiers?view=vs-2019
* 0.16.1
6 years ago
Max Brunsfeld
b4497e0bba
⬆️ tree-sitter-cli
6 years ago
calixteman
c455818961
#include can be followed by a macro name or a macro call ( #38 )
* #include can be followed by a macro name or a macro call
* In preproc_include, use preproc_call_expression
6 years ago
calixteman
362c031880
Parse expressions in preprocessor #if statement ( #29 )
* Parse expressions in preprocessor #if statement
* Make preproc_expression look like a normal expression
* Hide the wrapper rules
* Alias the rulres to match their corresponding expression rule
* Handle line continuations as extra tokens
6 years ago
calixteman
2ed529f075
Add u|U|u8 string|char support ( #36 )
6 years ago
Max Brunsfeld
3458bfc9a5
⬆️ tree-sitter
6 years ago
Max Brunsfeld
627806ec6a
Allow case statements separate from switch statements
Fixes #32
6 years ago
Max Brunsfeld
916be99704
Allow comma operator in return statement
Fixes #31
6 years ago
calixteman
c578638af2
Fix multi-statements in for initializer and update parts ( #27 )
* Fix multi-statements in for initializer and update parts
* Finally the bug was only in the initializer part
7 years ago
calixteman
c8061429cc
Fix error with ++L (consequence of support for L strings) ( #26 )
* Fix error with ++L (consequence of support for L strings)
* Update to tree-sitter 0.15.5
7 years ago
Max Brunsfeld
0bc1adf0c2
Tweak fields
7 years ago
Max Brunsfeld
c3965938cc
Add node fields, update tree-sitter-cli
7 years ago
calixteman
ff4fc1c785
Handle L-strings and L-chars ( #25 )
7 years ago
Max Brunsfeld
4c8cc481d9
Update tree-sitter-cli to 0.15.3
7 years ago