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

Commit

Permalink
Use single quotes instead of backslashes for quoted literal punctuation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmichaud committed Oct 15, 2009
1 parent 0dfed1f commit 75fd363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Regex/P6Grammar/Grammar.pm
Expand Up @@ -7,21 +7,21 @@ grammar Regex::P6Grammar::Grammar is Regex::P6Regex::Grammar;
{*}
}

token name { <.ident> ** [\:\:] {*} }
token name { <.ident> ** '::' {*} }

token longname {
[
| <.ident> [ \: sym \< <-[>]>*: \> ]?
| <.ident> [ ':sym<' <-[>]>* '>' ]?
]
{*}
}

rule grammar_stmt { grammar <name> [ is <base=name> ]? \; {*} }
rule grammar_stmt { grammar <name> [ is <base=name> ]? ';' {*} }

rule regex_stmt {
$<sym>=[regex|token|rule]
<longname>
\{ <nibbler> \}
'{' <nibbler> '}'
{*}
}

0 comments on commit 75fd363

Please sign in to comment.