about summary refs log tree commit diff
path: root/crates/parser/src/syntax_kind
AgeCommit message (Collapse)AuthorLines
2022-05-13Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, ↵Jonas Schievink-8/+3
r=jonas-schievink" This reverts commit cc9ae2b89e01a30e441371b9fd3376c3d03a475f, reversing changes made to 7dfd1cb572d8d4fd951237361e43ecddd9c9a852.
2022-05-05Indicate the number of float tokens in the first tokenJonas Schievink-2/+6
2022-05-05Split float literal tokens at the `.`Jonas Schievink-3/+3
2022-05-05Wrap float literals in their own nodeJonas Schievink-1/+2
2022-04-05Wrap macros in expr position in `MacroExpr` nodeJonas Schievink-0/+1
2022-03-05fix: Recognize `Self` as a proper keywordLukas Wirth-5/+7
2022-03-02Parse destructuring assignmentChayim Refael Friedman-0/+1
The only patterns we should parse are `..` in structs and `_`: the rest are either not supported or already valid expressions.
2022-02-21Parse `let` expressions in order to support `let` chainsChayim Refael Friedman-1/+1
We still need to reject freestanding `let` expressions: see https://github.com/rust-analyzer/rust-analyzer/issues/11320#issuecomment-1018212465.
2021-12-12parser tests workAleksey Kladov-0/+12
2021-10-23internal: remove unused dollarsAleksey Kladov-2/+0
2021-10-07Support `let...else`Jonas Schievink-0/+1
2021-09-26internal: more reasonable grammar for blocksAleksey Kladov-1/+1
Consider these expples { 92 } async { 92 } 'a: { 92 } #[a] { 92 } Previously the tree for them were BLOCK_EXPR { ... } EFFECT_EXPR async BLOCK_EXPR { ... } EFFECT_EXPR 'a: BLOCK_EXPR { ... } BLOCK_EXPR #[a] { ... } As you see, it gets progressively worse :) The last two items are especially odd. The last one even violates the balanced curleys invariant we have (#10357) The new approach is to say that the stuff in `{}` is stmt_list, and the block is stmt_list + optional modifiers BLOCK_EXPR STMT_LIST { ... } BLOCK_EXPR async STMT_LIST { ... } BLOCK_EXPR 'a: STMT_LIST { ... } BLOCK_EXPR #[a] STMT_LIST { ... }
2021-09-06minor: modernizeAleksey Kladov-0/+1
2021-07-03internal: overhaul code generationAleksey Kladov-1/+1
* Keep codegen adjacent to the relevant crates. * Remove codgen deps from xtask, speeding-up from-source installation. This regresses the release process a bit, as it now needs to run the tests (and, by extension, compile the code).
2021-06-11Update ungrammarJonas Schievink-1/+1
2021-01-18Add `MacroType` syntaxJonas Schievink-0/+1
2021-01-15Add support for yiled keywordDaiki Ihara-2/+6
2020-12-23Update ungrammar for const block patternsLukas Wirth-0/+1
2020-12-16Node-ify lifetimesLukas Wirth-2/+3
2020-12-15Move to upstream `macro_rules!` modelJonas Schievink-2/+5
2020-11-06Kill RAW_ literalsAleksey Kladov-4/+1
Syntactically, they are indistinguishable from non-raw versions, so it doesn't make sense to separate then *at the syntax* level.
2020-09-03Up proc-macro2 to 1.20kjeremy-1/+1
This changes the way Display is implemented
2020-08-12Rename ra_parser -> parserAleksey Kladov-0/+367