about summary refs log tree commit diff
path: root/crates/syntax/src/tests/ast_src.rs
AgeCommit message (Collapse)AuthorLines
2022-05-13Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, ↵Jonas Schievink-12/+1
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-1/+11
2022-05-05Split float literal tokens at the `.`Jonas Schievink-1/+1
2022-05-05Wrap float literals in their own nodeJonas Schievink-0/+1
2022-04-05Wrap macros in expr position in `MacroExpr` nodeJonas Schievink-0/+1
2022-03-05fix: Recognize `Self` as a proper keywordLukas Wirth-2/+2
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-10-23internal: remove unused dollarsAleksey Kladov-10/+1
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-07-03internal: overhaul code generationAleksey Kladov-0/+258
* 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).