Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Some whitespace handling issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 17, 2009
1 parent 2c73bfa commit 1239272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Regex/P6Grammar/Grammar.pm
Expand Up @@ -22,7 +22,7 @@ grammar Regex::P6Grammar::Grammar is Regex::P6Regex::Grammar;
$<sym>=[regex|token|rule]
<longname>
{*} #= open
'{' <nibbler> '}'
'{'<nibbler>'}'
{*}
}

6 changes: 3 additions & 3 deletions src/Regex/P6Regex/Grammar.pm
Expand Up @@ -22,9 +22,9 @@ grammar Regex::P6Regex::Grammar;
{*}
}

rule nibbler {
token nibbler {
{*} #= open
['||'|'|'|'&&'|'&']?
[ <.ws> ['||'|'|'|'&&'|'&'] ]?
<termish>
[ ['||'|'|']
[ <termish> || <.panic: 'Null pattern not allowed'> ]
Expand Down Expand Up @@ -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> {
Expand Down

0 comments on commit 1239272

Please sign in to comment.