From f8763b87dcc4b490d7c2ade93f58853bc052a37e Mon Sep 17 00:00:00 2001 From: Moritz Lenz Date: Tue, 24 Aug 2010 08:46:38 +0200 Subject: [PATCH] add word boundary assertion after alphabetic infix operators Fixes RT #77218 --- src/Perl6/Grammar.pm | 48 ++++++++++++++++++++++---------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/Perl6/Grammar.pm b/src/Perl6/Grammar.pm index 301d83c30b9..bbda4dfaa65 100644 --- a/src/Perl6/Grammar.pm +++ b/src/Perl6/Grammar.pm @@ -1778,10 +1778,10 @@ token prefix:sym<|> { } token infix:sym<*> { } token infix:sym { } -token infix:sym
{ } +token infix:sym
{ >> } token infix:sym<%> { } token infix:sym { } -token infix:sym { } +token infix:sym { >> } token infix:sym<%%> { } token infix:sym<+&> { } token infix:sym<~&> { } @@ -1802,8 +1802,8 @@ token infix:sym<~^> { } token infix:sym { } token infix:sym { } -token infix:sym { } -token infix:sym { } +token infix:sym { >> } +token infix:sym { >> } token infix:sym<~> { } @@ -1820,17 +1820,17 @@ token infix:sym«<=» { } token infix:sym«>=» { } token infix:sym«<» { } token infix:sym«>» { } -token infix:sym«eq» { } -token infix:sym«ne» { } -token infix:sym«le» { } -token infix:sym«ge» { } -token infix:sym«lt» { } -token infix:sym«gt» { } +token infix:sym«eq» { >> } +token infix:sym«ne» { >> } +token infix:sym«le» { >> } +token infix:sym«ge» { >> } +token infix:sym«lt» { >> } +token infix:sym«gt» { >> } token infix:sym«=:=» { } token infix:sym<===> { } -token infix:sym { } -token infix:sym { } -token infix:sym { } +token infix:sym { >> } +token infix:sym { >> } +token infix:sym { >> } token infix:sym<~~> { } token infix:sym { } @@ -1847,8 +1847,8 @@ token infix:sym<&&> { ')> } token infix:sym<||> { , :pasttype')> } token infix:sym<^^> { ')> } token infix:sym { , :pasttype')> } -token infix:sym { } -token infix:sym { } +token infix:sym { >> } +token infix:sym { >> } token infix:sym { '??' @@ -1869,7 +1869,7 @@ token infix_prefix_meta_operator:sym { { } token infix_prefix_meta_operator:sym { } token infix_prefix_meta_operator:sym { } -token infix:sym { } +token infix:sym { >> } token infix:sym<:=> { ')> @@ -1928,11 +1928,11 @@ method assign_check($/) { } } -token infix:sym { ')> } +token infix:sym { >> ')> } -token infix:sym { ')> } -token infix:sym { ')> } -token infix:sym { ')> } +token infix:sym { >> ')> } +token infix:sym { >> ')> } +token infix:sym { >> ')> } token infix:sym«<==» { } token infix:sym«==>» { } @@ -1944,12 +1944,12 @@ token infix:sym<^..> { } token infix:sym<..^> { } token infix:sym<^..^> { } -token infix:sym { } -token infix:sym { } +token infix:sym { >> } +token infix:sym { >> } token infix:sym«<=>» { } -token infix:sym { } -token infix:sym { } +token infix:sym { >> } +token infix:sym { >> } token infix:sym { \s <.obs('!~ to do negated pattern matching', '!~~')> } token infix:sym<=~> { <.obs('=~ to do pattern matching', '~~')> }