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

Commit

Permalink
Allow hyphens and single-quotes in subrule calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Jun 24, 2010
1 parent b6defec commit 9157c78
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Regex/P6Regex/Grammar.pm
Expand Up @@ -9,6 +9,8 @@ grammar Regex::P6Regex::Grammar is HLL::Grammar;

token normspace { <?before \s | '#' > <.ws> }

token identifier { <.ident> [ <[\-']> <.ident> ]* }

token arg {
[
| <?[']> <quote_EXPR: ':q'>
Expand Down Expand Up @@ -145,7 +147,7 @@ grammar Regex::P6Regex::Grammar is HLL::Grammar;
}

token assertion:sym<name> {
$<longname>=[\w+]
<longname=.identifier>
[
| <?before '>'>
| '=' <assertion>
Expand Down
2 changes: 2 additions & 0 deletions t/p6regex/01-regex.t
Expand Up @@ -52,6 +52,8 @@ Description of the test.

=cut

.loadlib 'io_ops'

.const string TESTS = 'no_plan'

.sub main :main
Expand Down

0 comments on commit 9157c78

Please sign in to comment.