aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data
Commit message (Collapse)AuthorAgeFilesLines
* parser,syntax: Add separate parser for stmt with optional semicolonMarijn Suijten2021-01-0312-4/+65
| | | | | Adjusting `grammar::fragments::stmt` to Optional or Yes will break original functionality and tests.
* syntax,ssr: Implement statement parsingMarijn Suijten2021-01-0328-0/+150
|
* Fix macro_rules not accepting brackets or parenthesesLukas Wirth2020-12-242-0/+59
|
* Parse const effect blockLukas Wirth2020-12-232-0/+24
|
* Parse ConstBlockPatLukas Wirth2020-12-232-0/+80
|
* Merge #6965bors[bot]2020-12-215-135/+186
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6965: Properly attach attributes to Param instead of parent ParamList r=matklad a=Veykril Fixes #2783, fixes #2781 The problem with `let _a = [0,#[cfg(feature = "L")]0];` has already been fixed some time ago it seems: <details> <summary>Syntax Tree for the const item</summary> ``` LET_STMT@200..236 LET_KW@200..203 "let" WHITESPACE@203..204 " " IDENT_PAT@204..206 NAME@204..206 IDENT@204..206 "_a" WHITESPACE@206..207 " " EQ@207..208 "=" WHITESPACE@208..209 " " ARRAY_EXPR@209..235 L_BRACK@209..210 "[" LITERAL@210..211 INT_NUMBER@210..211 "0" COMMA@211..212 "," LITERAL@212..234 ATTR@212..233 POUND@212..213 "#" L_BRACK@213..214 "[" PATH@214..217 PATH_SEGMENT@214..217 NAME_REF@214..217 IDENT@214..217 "cfg" TOKEN_TREE@217..232 L_PAREN@217..218 "(" IDENT@218..225 "feature" WHITESPACE@225..226 " " EQ@226..227 "=" WHITESPACE@227..228 " " STRING@228..231 "\"L\"" R_PAREN@231..232 ")" R_BRACK@232..233 "]" INT_NUMBER@233..234 "0" R_BRACK@234..235 "]" SEMICOLON@235..236 ";" ``` </details> Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
| * Parse attributes in tuple expressionsLukas Wirth2020-12-202-0/+51
| |
| * Properly attach attributes to Param instead of parent ParamListLukas Wirth2020-12-203-135/+135
| |
* | Properly parse legacy trait objects with leading ForTypeLukas Wirth2020-12-202-0/+44
|/
* Node-ify lifetimesLukas Wirth2020-12-1633-141/+269
|
* Move to upstream `macro_rules!` modelJonas Schievink2020-12-155-45/+38
|
* Use items can also have doc commentsLukas Wirth2020-12-042-15/+15
|
* Parse unsafe extern blockDavid Tolnay2020-11-232-2/+16
|
* Fix attachment of inner doc commentsAleksey Kladov2020-11-121-3/+3
|
* Kill RAW_ literalsAleksey Kladov2020-11-0622-24/+24
| | | | | Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
* Don't interpret type path as part of visibility.Arif Roktim2020-10-242-0/+56
|
* Add validation check for ambiguous trait objectsLukas Wirth2020-10-064-0/+404
|
* Rename record_field_pat to record_pat_fieldPavan Kumar Sunkara2020-09-104-0/+0
|
* Complete `pub` in fieldsAleksey Kladov2020-08-252-0/+32
|
* Better recovery in `use foo::;`Aleksey Kladov2020-08-131-5/+3
|
* Align parser names with grammarAleksey Kladov2020-08-132-77/+0
|
* Rename ra_syntax -> syntaxAleksey Kladov2020-08-12739-0/+30257