aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser
Commit message (Collapse)AuthorAgeFilesLines
* Wrap remaining self/super/crate in Name{Ref}Lukas Wirth2021-01-1513-52/+122
|
* Handle self/super/crate in PathSegment as NameRefLukas Wirth2021-01-1517-32/+64
|
* Add test for yield_exprDaiki Ihara2021-01-152-0/+32
|
* Merge #7218bors[bot]2021-01-102-50/+50
|\ | | | | | | | | | | | | | | 7218: Fix typos r=Veykril a=regexident Apart from the very last commit on this PR (which fixes a public type's name) all changes are non-breaking. Co-authored-by: Vincent Esche <[email protected]>
| * Updated tests via `cargo xtask codegen`Vincent Esche2021-01-102-50/+50
| |
* | Allow `true` and `false` keywords in const genericsCallym2021-01-102-10/+20
|/
* 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> ``` [email protected] [email protected] "let" [email protected] " " [email protected] [email protected] [email protected] "_a" [email protected] " " [email protected] "=" [email protected] " " [email protected] [email protected] "[" [email protected] [email protected] "0" [email protected] "," [email protected] [email protected] [email protected] "#" [email protected] "[" [email protected] [email protected] [email protected] [email protected] "cfg" [email protected] [email protected] "(" [email protected] "feature" [email protected] " " [email protected] "=" [email protected] " " [email protected] "\"L\"" [email protected] ")" [email protected] "]" [email protected] "0" [email protected] "]" [email protected] ";" ``` </details> Co-authored-by: Lukas Wirth <[email protected]>
| * 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-1630-135/+263
|
* 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-061-2/+2
| | | | | 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-12590-0/+25565