From ae29fbf88caa40bb04fb7c8aa255b0f8a63e868d Mon Sep 17 00:00:00 2001 From: pmichaud Date: Tue, 21 Jul 2009 00:23:38 -0500 Subject: [PATCH] Better handle hyphens and apostrophes after certain keywords (RT #64656). --- src/parser/grammar.pg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/parser/grammar.pg b/src/parser/grammar.pg index 8df61601223..81c883b6c02 100644 --- a/src/parser/grammar.pg +++ b/src/parser/grammar.pg @@ -89,7 +89,7 @@ token unsp { } token unspacey { <.unsp>? } -token nofun { } +token nofun { } token unv { || \h+ @@ -390,7 +390,7 @@ rule statement_mod_cond { } rule statement_prefix { - $=[do|try|gather|contend|async|lazy] + $=[do|try|gather|contend|async|lazy]<.nofun> {*} } @@ -400,16 +400,16 @@ rule statement_prefix { rule multi_declarator { [ - | $=[multi|proto|only] [ || ] + | $=[multi|proto|only]<.nofun> [ || ] | ] {*} } token routine_declarator { - | $='sub' {*} #= sub - | $='method' {*} #= method - | $='submethod' {*} #= submethod + | $='sub' <.nofun> {*} #= sub + | $='method' <.nofun> {*} #= method + | $='submethod' <.nofun> {*} #= submethod } rule multisig {