Skip to content

Commit

Permalink
[Yapsi] fixed faulty <!after> workaround
Browse files Browse the repository at this point in the history
Always take care when you deploy your workarounds, so that they retain the
original meaning of the thing being replaced. Otherwise, things will start
to fail, and you'll have to debug them.
  • Loading branch information
Carl Masak committed Aug 9, 2010
1 parent e4ed4ab commit b3af4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Yapsi.pm
Expand Up @@ -9,8 +9,8 @@ grammar Yapsi::Perl6::Grammar {
regex statementlist { <statement> ** <eat_terminator> }
token statement { <statement_control> || <expression> || '' }
# RAKUDO: <?after '{'> NYRI [perl #76894]
token eat_terminator { <?{ $/.CURSOR.pos > 1
&& $_PROGRAM.substr($/.CURSOR.pos - 1, 1) eq "\{"
regex eat_terminator { <?{ $/.CURSOR.pos > 0
&& $_PROGRAM.substr($/.CURSOR.pos - 1, 1) eq '}'
}> \n
|| <.ws> ';' }
token expression { <assignment> || <binding> || <variable> || <literal>
Expand Down

0 comments on commit b3af4ad

Please sign in to comment.