aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-10-16 09:44:27 (EDT)
committerzzhongwei2012-10-16 09:44:27 (EDT)
commit081ac2392cab5bb843347ca1ac67c50ecd45679f (patch)
tree69099d7697828b84bca73aa97fa124fafaa032d7
parent250e9ea2f2c401c8d6d993a5951a0dd4ea75cd82 (diff)
downloadorg.eclipse.pdt-081ac2392cab5bb843347ca1ac67c50ecd45679f.zip
org.eclipse.pdt-081ac2392cab5bb843347ca1ac67c50ecd45679f.tar.gz
org.eclipse.pdt-081ac2392cab5bb843347ca1ac67c50ecd45679f.tar.bz2
https://bugs.eclipse.org/bugs/show_bug.cgi?id=386550 case 1
contributed by Itay
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/format/DefaultIndentationStrategy.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/format/DefaultIndentationStrategy.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/format/DefaultIndentationStrategy.java
index 79a420f..a3f2714 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/format/DefaultIndentationStrategy.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/format/DefaultIndentationStrategy.java
@@ -993,10 +993,10 @@ public class DefaultIndentationStrategy implements IIndentationStrategy {
String trimedLine = document.get(offset,
region.getOffset() + region.getLength() - offset)
.trim();
- if (!(trimedLine.startsWith(BLANK// + PHPHeuristicScanner.LBRACE
- ))
- && trimedLine.contains(Character
- .toString(PHPHeuristicScanner.LBRACE))) {
+ if (!(trimedLine.startsWith(BLANK + PHPHeuristicScanner.LBRACE)))
+ // && trimedLine.contains(Character
+ // .toString(PHPHeuristicScanner.LBRACE)))
+ {
return true;
}
} catch (BadLocationException e) {