bug 1375017, code formatter inserted blank before increment/decrement operator
authorbananeweizen <bananeweizen>
Sun, 18 Dec 2005 15:48:46 +0000 (15:48 +0000)
committerbananeweizen <bananeweizen>
Sun, 18 Dec 2005 15:48:46 +0000 (15:48 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/formatter/CodeFormatter.java

index fe61f5a..6003bd0 100644 (file)
@@ -790,7 +790,7 @@ public class CodeFormatter implements ITerminalSymbols, ICodeFormatter {
         case TokenNameMINUS_MINUS:
           // Do not put a space between a post-increment/decrement
           // and the identifier being modified.
-          if (previousToken == TokenNameIdentifier || previousToken == TokenNameRBRACKET) {
+          if (previousToken == TokenNameIdentifier || previousToken == TokenNameRBRACKET || previousToken == TokenNameVariable) {
             pendingSpace = false;
           }
           break;