Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better error message for ?:
  • Loading branch information
moritz committed Feb 20, 2011
1 parent 9ed54cf commit 880a0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Perl6/Grammar.pm
Expand Up @@ -1958,6 +1958,9 @@ token infix:sym<...> { <sym> <O('%list_infix')> }
token infix:sym<...^> { <sym> <O('%list_infix')> }
# token term:sym<...> { <sym> <args>? <O(|%list_prefix)> }

token infix:sym<?> { <sym> {} <!before '?'> <?before <-[;]>*?':'> <.obs('?: for the conditional operator', '??!!')> <O('%conditional')> }


token infix:sym<=> {
<sym>
[
Expand Down

0 comments on commit 880a0a7

Please sign in to comment.