subtle bug in the order of the rewriter rules was causing some if/else chains to get confused by implicit indentation

This commit is contained in:
Jeremy Ashkenas
2010-02-13 09:39:25 -05:00
parent a62923ff97
commit 13b2dc8d31
5 changed files with 18 additions and 10 deletions

View File

@@ -118,13 +118,13 @@
return new OpNode('!!', $2);
}), o("- Expression", (function() {
return new OpNode('-', $2);
}), {
})), {
prec: 'UMINUS'
}), o("+ Expression", (function() {
}, o("+ Expression", (function() {
return new OpNode('+', $2);
}), {
})), {
prec: 'UPLUS'
}), o("NOT Expression", function() {
}, o("NOT Expression", function() {
return new OpNode('not', $2);
}), o("~ Expression", function() {
return new OpNode('~', $2);