summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-24 09:18:04 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-24 09:18:04 +0000
commitd35979cdfe6192450503da23e6fc77218d09e829 (patch)
treed195db6e4d7a974ef6bde185a36db6fe37092dd9 /parse.y
parent69a7d012c406fd47c2416a87da33c7e6b7df81df (diff)
* parse.y: tMINUS should have lower precedence than tPOW.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 3ad879db1f..3adbecf502 100644
--- a/parse.y
+++ b/parse.y
@@ -307,9 +307,9 @@ static void top_local_setup();
%left tLSHFT tRSHFT
%left '+' '-'
%left '*' '/' '%'
-%right tUMINUS_NUM
+%right tUMINUS_NUM tUMINUS
%right tPOW
-%right '!' '~' tUPLUS tUMINUS
+%right '!' '~' tUPLUS
%token tLAST_TOKEN