nushell/crates/nu-parser/src
Solomon 4779d69de6
prevent panic when parsing incomplete multi-expr (|) matches (#15230)
Fixes #14971, fixes #15229

# User-Facing Changes

Fixes a panic when variable data is accessed after invalid usage of the
`|` separator, which made it impossible to type certain match arms:

```nushell
> match $in { 1 |
Error:   x Main thread panicked.
  |-> at crates/nu-protocol/src/engine/state_delta.rs💯14
  `-> internal error: missing required scope frame
```

# Description

Removes duplicative calls to `exit_scope` from an inner loop when `|`
parse errors are encountered. The outer loop creates and exits scopes
for each match arm.
2025-03-04 05:34:34 -06:00
..
deparse.rs Fix quoting in to nuon and refactor quoting functions (#14180) 2024-10-29 07:43:26 -05:00
exportable.rs Restructure nu-protocol in more meaningful units (#11917) 2024-03-10 18:45:45 +01:00
flatten.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
known_external.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
lex.rs 14523 all comments should be prefixed with space tab or be beginning of token (#14616) 2024-12-25 21:31:51 +08:00
lib.rs Fix quoting in to nuon and refactor quoting functions (#14180) 2024-10-29 07:43:26 -05:00
lite_parser.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
parse_keywords.rs add attr category @category to custom command attributes (#15137) 2025-02-18 15:35:52 -06:00
parse_patterns.rs Custom command attributes (#14906) 2025-02-11 06:34:51 -06:00
parse_shape_specs.rs udpate rust toolchain to rust 1.81.0 (#14473) 2024-11-29 21:46:58 +01:00
parser.rs prevent panic when parsing incomplete multi-expr (|) matches (#15230) 2025-03-04 05:34:34 -06:00
type_check.rs Rework operator type errors (#14429) 2025-02-12 20:03:40 -08:00