return true;
});
+ PARENS(AST_Number, function(output){
+ var p = output.parent();
+ if (this.getValue() < 0 && p instanceof AST_PropAccess && p.expression === this)
+ return true;
+ });
+
function assign_and_conditional_paren_rules(output) {
var p = output.parent();
// !(a = false) → true
DEFPRINT(AST_Dot, function(self, output){
var expr = self.expression;
expr.print(output);
- if (expr instanceof AST_Number) {
+ if (expr instanceof AST_Number && expr.getValue() >= 0) {
if (!/[xa-f.]/i.test(output.last())) {
output.print(".");
}