-
-
Save zoffixznet/7e368cb00e2e5385ef12473ebaa6cdba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rule statement_control:sym<without> { | |
$<sym>='without' <.kok> {} | |
<xblock(1)> # 1 means we're not parsing `unless` | |
[ <!before [els[e|if]|orwith]» > | |
|| $<wrong-keyword>=[els[e|if]|orwith]» | |
<.typed_panic: 'X::Syntax::WithoutElse', | |
keyword => ~$<wrong-keyword>, | |
> | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment