Permalink
Browse files

Some whitespace handling issues.

  • Loading branch information...
1 parent 2c73bfa commit 12392722c3f7dcc9e3a614b20ce50d727e934f7e @pmichaud pmichaud committed Oct 17, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/Regex/P6Grammar/Grammar.pm
  2. +3 −3 src/Regex/P6Regex/Grammar.pm
@@ -22,7 +22,7 @@ grammar Regex::P6Grammar::Grammar is Regex::P6Regex::Grammar;
$<sym>=[regex|token|rule]
<longname>
{*} #= open
- '{' <nibbler> '}'
+ '{'<nibbler>'}'
{*}
}
@@ -22,9 +22,9 @@ grammar Regex::P6Regex::Grammar;
{*}
}
- rule nibbler {
+ token nibbler {
{*} #= open
- ['||'|'|'|'&&'|'&']?
+ [ <.ws> ['||'|'|'|'&&'|'&'] ]?
<termish>
[ ['||'|'|']
[ <termish> || <.panic: 'Null pattern not allowed'> ]
@@ -85,7 +85,7 @@ grammar Regex::P6Regex::Grammar;
token metachar:sym<{*}> {
$<sym>=['{*}']
- [ \h* '#= ' \h* $<key>=[[\S+] ** [\h+]] ]?
+ [ \h* '#= ' \h* $<key>=[\S+ [\h+ \S+]*] ]?
{*}
}
token metachar:sym<assert> {

0 comments on commit 1239272

Please sign in to comment.