Yoann Padioleau
f35789006c
Merge pull request #125 from Luni-4/publish
Add an action to publish the grammar automatically
пре 3 година
Luni-4
632c68e42c
Add an action to publish the grammar automatically
пре 3 година
Max Brunsfeld
7175a6dd5f
0.20.2
пре 4 година
John Drouhard
0720f9c2af
Add test for comma expression in iteration expression
пре 4 година
Ismail A Bella
94bc261b1a
fix: allow multiple expressions inside for_statement condition
пре 4 година
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 година
Ben Dunkin
517bf92b2c
add the body label to for loops to make it the same as other loops ( #110 )
пре 4 година
Yoann Padioleau
3ced8d6cd2
Merge pull request #105 from lukepistrol/feature/spm
Swift Package Manager
пре 4 година
Lukas Pistrol
beb1516844
added spm support
пре 4 година
Lukas Pistrol
5e71a79b24
added spm support
пре 4 година
Max Brunsfeld
e348e8ec5e
0.20.1
пре 4 година
John Drouhard
f71e80b9f2
Extract "..." into a named node called variadic_parameter. Fixes #73
пре 4 година
jdrouhard
9bee34500c
Support attribute statements under case statements ( #83 )
пре 4 година
John Drouhard
0aeed5578a
Fix indent-level whitespace
пре 4 година
John Drouhard
b50e693547
Separate _declaration_modifiers from _declaration_specifiers to make it overridable in the cpp grammar
пре 4 година
Max Brunsfeld
a584fc98ca
0.20.0
пре 4 година
John Drouhard
0b714a5134
rename attribute_definition to attribute_declaration
пре 4 година
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 година
Microsoft Provenance Contributions
d09ab34013
Update package.json to include the repository key ( #77 )
With the rise in supply chain attacks and OSS dependencies being used as a attack vector, Microsoft is working with our ecosystem partners, such as the Linux Foundation's OpenSSF, to enable OSS consumers to track packages back to their public sources.
We've identified that the following packages published to NPM do not report where sources can be found, typically accomplished by including a link to your GitHub repository in your `package.json` REPOSITORY field. This PR was created to add this value, ensuring future releases will include this provenance information.
Published NPM packages with repository information:
* tree-sitter-c
пре 4 година
berchn
008008e30a
Add operator field to field_expression ( #69 )
пре 5 година
berchn
25fb87ce98
Add operation field to assignment_expression ( #68 )
пре 5 година
ysftaha
f05e279aed
added assignment operator to highlights ( #62 )
пре 5 година
Max Brunsfeld
5aa0bbbfc4
0.19.0
пре 5 година
Max Brunsfeld
07b1d73e9d
Bump tree-sitter-cli to 0.19
пре 5 година
Luni-4
fa408bc9e7
Add Rust package ( #58 )
пре 5 година
Max Brunsfeld
8d4631b673
⬆️ tree-sitter-cli to 0.18
пре 5 година
Jen-Chieh Shen
80b6b748e6
Add #elif macro highlighting ( #56 )
пре 5 година
Max Brunsfeld
99151b1e92
⬆️ tree-sitter-cli
пре 6 година
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 година
Max Brunsfeld
b4497e0bba
⬆️ tree-sitter-cli
пре 6 година
calixteman
6002fcd5e8
Add a rule for left part of assignment: it'll be helpful to add scope… ( #37 )
* Add a rule for left part of assignment: it'll be helpful to add scoped_name_identifier (c++)
* Inline the assignment_left_expression rule
пре 6 година
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 година
Max Brunsfeld
b6ff8fbdaf
Handle line continuations with CRLF endings
пре 6 година
calixteman
d2ebd7f6c0
Macro definition can contain continuation line in the argument list ( #28 )
* Macro definition can contain continuation line in the argument list
* Reset grammar since line continuations are handled globally
Preserve the test.
пре 6 година
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 година
calixteman
2ed529f075
Add u|U|u8 string|char support ( #36 )
пре 6 година
Max Brunsfeld
2104daa5ab
⬆️ tree-sitter-cli
пре 6 година
Max Brunsfeld
d101ad1c83
Improve highlighting query
пре 6 година
Max Brunsfeld
e42a259567
0.16.0
пре 6 година
Max Brunsfeld
457a7917a1
Use new test structure, add syntax highlighting tests
пре 6 година
Max Brunsfeld
91ac28fa5e
0.15.3
пре 6 година
Max Brunsfeld
3458bfc9a5
⬆️ tree-sitter
пре 6 година
Max Brunsfeld
627806ec6a
Allow case statements separate from switch statements
Fixes #32
пре 6 година
Max Brunsfeld
916be99704
Allow comma operator in return statement
Fixes #31
пре 6 година
Max Brunsfeld
22decdc361
0.15.2
пре 7 година
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 година
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 година
Max Brunsfeld
b44a2e10c5
0.15.1
пре 7 година
Max Brunsfeld
e0512072cc
Handle comments with escaped CRLF line endings
Fixes #24
пре 7 година
Max Brunsfeld
0bc1adf0c2
Tweak fields
пре 7 година