Max Brunsfeld
9e21e17371
Allow preprocessor conditionals inside of field declaration lists
Co-Authored-By: Thomas Johansen <thomasjo@gmail.com>
преди 8 години
Max Brunsfeld
cc0dff55a0
Don't allow newlines in system lib strings
преди 8 години
Max Brunsfeld
95b1b4315e
Add _Atomic and restrict type qualifiers
преди 8 години
Max Brunsfeld
e8b6879820
Use repeat in initializer lists
преди 8 години
Max Brunsfeld
0c38b9f8c9
Handle identifier starting with 'false', 'true', etc
преди 8 години
Max Brunsfeld
a76daa432c
Fix parsing of char16_t, char32_t
преди 8 години
Max Brunsfeld
3a97441df7
Require a line break after an unknown preprocessor directive
преди 8 години
Max Brunsfeld
e6c28cafb3
Avoid relying on old, non-standard tree-sitter regex feature
преди 8 години
Max Brunsfeld
db8d3af84f
Add #elifs inside of #ifdefs
Signed-off-by: Nathan Sobo <nathan@github.com>
преди 8 години
Max Brunsfeld
065bee2c23
Add preprocessor elif clauses
Signed-off-by: Nathan Sobo <nathan@github.com>
преди 8 години
Max Brunsfeld
fcb4537288
Fix regex for unknown preprocessor directives
Signed-off-by: Nathan Sobo <nathan@github.com>
преди 8 години
Max Brunsfeld
1e1f7c9cf8
Parse typedef names as type_identifiers
преди 8 години
Max Brunsfeld
060b072223
Fix interpretation of 'unsigned' et al as standalone types
преди 8 години
Max Brunsfeld
82b62611b6
Differentiate primitive types from other type names
преди 8 години
Max Brunsfeld
d80749fc3f
Boost the dynamic precedence of parameter lists (mostly for C++)
преди 8 години
Max Brunsfeld
c4ed85b79b
Call inline a storage class specifier like static
преди 8 години
Max Brunsfeld
31c966ece2
Handle multi-line comments with asterisks at the end
преди 8 години
Max Brunsfeld
f433b2bf8a
Tweak identifier naming convention
преди 9 години
Max Brunsfeld
809cd89afe
Use new alias API
преди 9 години
Max Brunsfeld
6147b5ecca
Rename label_name -> label, extract rules for identifier renames
преди 9 години
Max Brunsfeld
b8509fdf21
Function calls have higher precedence than unary operators
преди 9 години
Max Brunsfeld
7775b575e6
Differentiate between top-level items and those that appear in statement blocks
преди 9 години
Max Brunsfeld
66003e2afc
Rename type_clause -> type_descriptor and pull out the parens
преди 9 години
Max Brunsfeld
9e7706d922
Distinguish variables, types, fields and labels using renames
преди 9 години
Max Brunsfeld
debe919f84
Allow whitespace after the # in preprocessor directives
преди 9 години
Max Brunsfeld
d9c324ffce
Don't try to parse #if conditions as C expressions
Doing this required treating the newline that follows these conditions as significant
in order to avoid conflicts, but this caused problems for error recovery.
преди 9 години
Max Brunsfeld
eb82660b87
Generalize the ordering of type and declaration specifiers
преди 9 години
Max Brunsfeld
3f65e85781
Reuse declaration_specifiers rule in more places
преди 9 години
Max Brunsfeld
ab0162ce37
Make member_declaration_list its own rule
преди 9 години
Max Brunsfeld
42436c29ae
Allow simple abstract function declarators as in `sizeof(void * ())`
преди 9 години
Max Brunsfeld
34245e5ba8
Export precedences (so C++ grammar can use them)
преди 9 години
Max Brunsfeld
39a662907b
Make a named node for argument lists in call expressions
преди 9 години
Max Brunsfeld
281e0cd60d
Add 'u' and 'l' suffixes on number literals
преди 9 години
Max Brunsfeld
eaa878ce95
Allow preprocessor conditionals inside functions
преди 9 години
Max Brunsfeld
e64b56050e
Add preprocessor if blocks
преди 9 години
Max Brunsfeld
8e8a968e3b
Fix handling of backslashes in string literals
преди 9 години
Max Brunsfeld
9b715a2620
Add concatenated strings
преди 9 години
Max Brunsfeld
fb51d81c99
Add comma expressions, make parenthesized expressions named rules
преди 9 години
Max Brunsfeld
c2a7bd2d9c
Allow any type name in a macro-defined type
преди 9 години
Max Brunsfeld
eed36b3f88
Allow object-like defines whose values start with parentheses
преди 9 години
Max Brunsfeld
be2676ed3e
Allow empty initializer lists
преди 9 години
Max Brunsfeld
f3ea61c8fe
Add C++ linkage specifiers, since they appear in .h files
преди 9 години
Max Brunsfeld
367cd73ee2
Allow unsigned, short, etc to be their own types
преди 9 години
Max Brunsfeld
46e5a1af6a
Add associativity to pointer declarators
преди 9 години
Max Brunsfeld
7930ba3917
Only allow identifiers after the '.' in a field expression
преди 10 години
Max Brunsfeld
e270a9c486
Remove error rules
преди 10 години
Max Brunsfeld
f9a1ffa413
Add function-like macros as type specifiers
преди 10 години
Max Brunsfeld
c57b5a58f2
Fix malformed test that wasn't being run
преди 10 години
Max Brunsfeld
603224433a
Use new javascript grammar API
преди 10 години