Skip to content

Commit 83c4c94

Browse files
committed
Remove ambiguity from block fallback parsing.
1 parent 47ffcd5 commit 83c4c94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/parsers/block.cr

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ module Mint
3131
fallback =
3232
parse do
3333
whitespace
34-
next unless keyword! "or"
3534

36-
whitespace
35+
next unless keyword! "or"
36+
next unless whitespace!
37+
next if keyword! "return"
3738
next unless expression = self.expression
3839

3940
expression

0 commit comments

Comments
 (0)