From 192ce451bbcaa19da5fd2819e6f4b99b985df0af Mon Sep 17 00:00:00 2001 From: bananeweizen Date: Sun, 18 Dec 2005 15:48:46 +0000 Subject: [PATCH] bug 1375017, code formatter inserted blank before increment/decrement operator --- .../phpdt/internal/formatter/CodeFormatter.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/formatter/CodeFormatter.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/formatter/CodeFormatter.java index fe61f5a..6003bd0 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/formatter/CodeFormatter.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/formatter/CodeFormatter.java @@ -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; -- 1.7.1