From 75fd3630a45eba2d05d0e70b0f78a2abc6941f7f Mon Sep 17 00:00:00 2001 From: pmichaud Date: Thu, 15 Oct 2009 01:18:45 -0500 Subject: [PATCH] Use single quotes instead of backslashes for quoted literal punctuation. --- src/Regex/P6Grammar/Grammar.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Regex/P6Grammar/Grammar.pm b/src/Regex/P6Grammar/Grammar.pm index 2692a82..fd9923a 100644 --- a/src/Regex/P6Grammar/Grammar.pm +++ b/src/Regex/P6Grammar/Grammar.pm @@ -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 [ is ]? \; {*} } + rule grammar_stmt { grammar [ is ]? ';' {*} } rule regex_stmt { $=[regex|token|rule] - \{ \} + '{' '}' {*} }