diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-28 21:01:05 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-28 21:01:36 +0100 |
| commit | 9c906f92c50d453822b12896d29b7883802ea567 (patch) | |
| tree | 78e2465a4fa805bbddc80407b7eea585b5ebb60c /src/parse/incremental.rs | |
| parent | 3a07603b66fab6b343b34156f4a3a6015e2d69e1 (diff) | |
Parse `break`, `continue` and `return` expression
Diffstat (limited to 'src/parse/incremental.rs')
| -rw-r--r-- | src/parse/incremental.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse/incremental.rs b/src/parse/incremental.rs index 2edb84ba..9dd5bec1 100644 --- a/src/parse/incremental.rs +++ b/src/parse/incremental.rs @@ -548,7 +548,10 @@ impl NodeKind { | Self::ShowExpr | Self::WrapExpr | Self::ImportExpr - | Self::IncludeExpr => SuccessionRule::AtomicPrimary, + | Self::IncludeExpr + | Self::BreakExpr + | Self::ContinueExpr + | Self::ReturnExpr => SuccessionRule::AtomicPrimary, // This element always has to remain in the same column so better // reparse the whole parent. |
