fix one more glitch
This commit is contained in:
parent
13f7b119bb
commit
4fb6021b0b
|
|
@ -95,7 +95,7 @@ function OutputStream(options) {
|
||||||
might_need_space = false;
|
might_need_space = false;
|
||||||
}
|
}
|
||||||
if (might_need_semicolon) {
|
if (might_need_semicolon) {
|
||||||
if (";{}".indexOf(ch) < 0 && !/[;]$/.test(OUTPUT)) {
|
if (";}".indexOf(ch) < 0 && !/[;]$/.test(OUTPUT)) {
|
||||||
OUTPUT += ";";
|
OUTPUT += ";";
|
||||||
current_col++;
|
current_col++;
|
||||||
current_pos++;
|
current_pos++;
|
||||||
|
|
@ -672,6 +672,8 @@ function OutputStream(options) {
|
||||||
});
|
});
|
||||||
DEFPRINT(AST_UnaryPrefix, function(self, output){
|
DEFPRINT(AST_UnaryPrefix, function(self, output){
|
||||||
output.print(self.operator);
|
output.print(self.operator);
|
||||||
|
if (is_alphanumeric_char(self.operator.charAt(0)))
|
||||||
|
output.space();
|
||||||
self.expression.print(output);
|
self.expression.print(output);
|
||||||
});
|
});
|
||||||
DEFPRINT(AST_UnaryPostfix, function(self, output){
|
DEFPRINT(AST_UnaryPostfix, function(self, output){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user