aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2012-12-10 22:33:40 (EST)
committerzzhongwei2012-12-10 22:33:40 (EST)
commit386b1e0b7b3bcf50188c1969aa3c6ddf98fefd27 (patch)
tree6c778defda1371837272314ab2ea77dcc6c22153
parentb78ff81583ae30ca84321ec86fa5af670890ee88 (diff)
downloadorg.eclipse.pdt-386b1e0b7b3bcf50188c1969aa3c6ddf98fefd27.zip
org.eclipse.pdt-386b1e0b7b3bcf50188c1969aa3c6ddf98fefd27.tar.gz
org.eclipse.pdt-386b1e0b7b3bcf50188c1969aa3c6ddf98fefd27.tar.bz2
396235: html code in php file loses syntax coloring when the focus in a
method body https://bugs.eclipse.org/bugs/show_bug.cgi?id=396235
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/configuration/StructuredDocumentDamagerRepairer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/configuration/StructuredDocumentDamagerRepairer.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/configuration/StructuredDocumentDamagerRepairer.java
index dd6b6c0..7002546 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/configuration/StructuredDocumentDamagerRepairer.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/editor/configuration/StructuredDocumentDamagerRepairer.java
@@ -45,7 +45,7 @@ public class StructuredDocumentDamagerRepairer extends DefaultDamagerRepairer {
if (!phpScriptRegion.isFullReparsed()) {
Region r = new Region(
phpScriptRegion.getUpdatedTokensStart()
- + phpScriptRegion.getStart(),
+ + region.getOffset(),
phpScriptRegion.getUpdatedTokensLength());
return new TextPresentation((IRegion) r, 1000);
}