about summary refs log tree commit diff
path: root/crates/parser/src
AgeCommit message (Collapse)AuthorLines
2021-01-09Fixed typos in code commentsVincent Esche-1/+1
2021-01-03parser,syntax: Add separate parser for stmt with optional semicolonMarijn Suijten-0/+6
Adjusting `grammar::fragments::stmt` to Optional or Yes will break original functionality and tests.
2020-12-28Fix mbe fail to pass expr with attrEdwin Cheng-1/+1
2020-12-24Fix macro_rules not accepting brackets or parenthesesLukas Wirth-2/+7
2020-12-23Remove local ungrammar dependencyLukas Wirth-3/+1
2020-12-23Parse const effect blockLukas Wirth-2/+14
2020-12-23Parse ConstBlockPatLukas Wirth-0/+16
2020-12-23Update ungrammar for const block patternsLukas Wirth-0/+1
2020-12-21Merge #6965bors[bot]-12/+13
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>
2020-12-21Merge #6967bors[bot]-9/+19
6967: Correctly parse legacy trait objects with leading ForType r=matklad a=Veykril Fixes #1422 Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2020-12-20Properly parse legacy trait objects with leading ForTypeLukas Wirth-9/+19
2020-12-20Parse attributes in tuple expressionsLukas Wirth-3/+5
2020-12-20Properly attach attributes to Param instead of parent ParamListLukas Wirth-9/+8
2020-12-20Use pattern_single instead of pattern in mbe patEdwin Cheng-2/+2
2020-12-18Implement `RawAttr::filter`Jonas Schievink-0/+7
2020-12-16Node-ify lifetimesLukas Wirth-29/+48
2020-12-15Move to upstream `macro_rules!` modelJonas Schievink-15/+36
2020-11-22Parse unsafe extern blockDavid Tolnay-1/+9
2020-11-06Kill RAW_ literalsAleksey Kladov-23/+5
Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
2020-10-24Don't interpret type path as part of visibility.Arif Roktim-1/+5
2020-09-10Rename record_field_pat to record_pat_fieldPavan Kumar Sunkara-2/+2
2020-09-03Up proc-macro2 to 1.20kjeremy-1/+1
This changes the way Display is implemented
2020-08-27CONST LOOPS ARE HEREAleksey Kladov-28/+37
2020-08-25Complete `pub` in fieldsAleksey Kladov-1/+8
2020-08-13Better recovery in `use foo::;`Aleksey Kladov-2/+14
2020-08-13Align parser names with grammarAleksey Kladov-146/+124
2020-08-12Rename ra_syntax -> syntaxAleksey Kladov-2/+2
2020-08-12Rename ra_parser -> parserAleksey Kladov-0/+4872