mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Fix parsing of block expressions in "forbid_structs" contexts.
Forbidding block expressions entirely is too strict; instead, we should only forbid them in contexts where we are parsing an optional RHS (i.e. the RHS of a range expression).
This commit is contained in:
parent
e1c3675951
commit
9638adaa40
11 changed files with 242 additions and 54 deletions
|
@ -1,5 +1,5 @@
|
|||
// Stores definitions which must be used in multiple places
|
||||
// See `cargo gen-syntax` (defined in crates/tools/src/main.rs)
|
||||
// See `cargo gen-syntax` (defined in crates/ra_tools/src/main.rs)
|
||||
Grammar(
|
||||
punct: [
|
||||
(";", "SEMI"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue