about summary refs log tree commit diff
path: root/crates/parser/src/grammar/patterns.rs
AgeCommit message (Collapse)AuthorLines
2022-05-13Revert "Auto merge of #12149 - jonas-schievink:literally-just-a-literal, ↵Jonas Schievink-1/+1
r=jonas-schievink" This reverts commit cc9ae2b89e01a30e441371b9fd3376c3d03a475f, reversing changes made to 7dfd1cb572d8d4fd951237361e43ecddd9c9a852.
2022-05-05Split float literal tokens at the `.`Jonas Schievink-1/+1
2022-04-27fix: Use pattern recovery set when parsing ident patternsLukas Wirth-9/+6
2021-11-18fix: parse the range pat inside the tuple patzhoufan-1/+6
2021-10-06Merge #10420bors[bot]-25/+43
10420: Parse outer attributes on StructPatternEtCetera r=jonas-schievink a=XFFXFF Try to fix https://github.com/rust-analyzer/rust-analyzer/issues/8610 Related pr in ungrammer: https://github.com/rust-analyzer/ungrammar/pull/41 Co-authored-by: zhoufan <1247714429@qq.com>
2021-10-05Merge #10440bors[bot]-2/+2
10440: Fix Clippy warnings and replace some `if let`s with `match` r=Veykril a=arzg I decided to try fixing a bunch of Clippy warnings. I am aware of this project’s opinion of Clippy (I have read both [rust-lang/clippy#5537](https://github.com/rust-lang/rust-clippy/issues/5537) and [rust-analyzer/rowan#57 (comment)](https://github.com/rust-analyzer/rowan/pull/57#discussion_r415676159)), so I totally understand if part of or the entirety of this PR is rejected. In particular, I can see how the semicolons and `if let` vs `match` commits provide comparatively little benefit when compared to the ensuing churn. I tried to separate each kind of change into its own commit to make it easier to discard certain changes. I also only applied Clippy suggestions where I thought they provided a definite improvement to the code (apart from semicolons, which is IMO more of a formatting/consistency question than a linting question). In the end I accumulated a list of 28 Clippy lints I ignored entirely. Sidenote: I should really have asked about this on Zulip before going through all 1,555 `if let`s in the codebase to decide which ones definitely look better as `match` :P Co-authored-by: Aramis Razzaghipour <aramisnoah@gmail.com>
2021-10-04make Some(1..) parsedzhoufan-3/+8
2021-10-03Fix miscellaneous Clippy lintsAramis Razzaghipour-1/+1
2021-10-03Add semicolons for consistencyAramis Razzaghipour-1/+1
`clippy::semicolon_if_nothing_returned`
2021-10-03move outer_attrs call before the matchzhoufan-15/+8
2021-10-02Parse outer attributes on StructPatternEtCeterazhoufan-21/+46
2021-09-13internal: simplifyAleksey Kladov-3/+4
2021-08-04Split the testJade-2/+10
2021-08-03Support exclusive_range_patternJade-3/+7
Fix #9779
2021-05-22Add even more docsAleksey Kladov-2/+0
2021-05-08Add `=` to pattern recoveryLukas Wirth-1/+1
2021-04-21Parse outer atttributes for RecordPatFieldLukas Wirth-2/+4
2021-01-10Replace SyntaxKind usage with T! macro where applicableLukas Wirth-1/+1
2020-12-23Remove local ungrammar dependencyLukas Wirth-3/+1
2020-12-23Parse ConstBlockPatLukas Wirth-0/+16
2020-09-10Rename record_field_pat to record_pat_fieldPavan Kumar Sunkara-2/+2
2020-08-27CONST LOOPS ARE HEREAleksey Kladov-4/+13
2020-08-13Align parser names with grammarAleksey Kladov-10/+10
2020-08-12Rename ra_parser -> parserAleksey Kladov-0/+379