summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2016-02-02 15:43:01 -0500
committerKarsten Thoms2016-02-02 15:43:01 -0500
commit62ec2566fe22ed05d423b946e581e3f84deea551 (patch)
tree223e7e5ebe936bd25a40f4fd02774703ed412f2d
parent28e350ef56c0d31f9d30ee74a548715d870c2382 (diff)
downloadorg.eclipse.xpand-62ec2566fe22ed05d423b946e581e3f84deea551.tar.gz
org.eclipse.xpand-62ec2566fe22ed05d423b946e581e3f84deea551.tar.xz
org.eclipse.xpand-62ec2566fe22ed05d423b946e581e3f84deea551.zip
[424084] Code completion in .xpt file after <<ENDREM->>
-rw-r--r--plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/codeassist/FastAnalyzer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/codeassist/FastAnalyzer.java b/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/codeassist/FastAnalyzer.java
index d307ea77..98be2f7a 100644
--- a/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/codeassist/FastAnalyzer.java
+++ b/plugins/org.eclipse.xpand/src/org/eclipse/internal/xpand2/codeassist/FastAnalyzer.java
@@ -86,7 +86,10 @@ public class FastAnalyzer {
public static boolean isInComment(final String str) {
final int index = str.lastIndexOf(XpandTokens.LT + "REM" + XpandTokens.RT);
if (index >= 0) {
- final int index2 = str.lastIndexOf(XpandTokens.LT + "ENDREM" + XpandTokens.RT);
+ int index2 = str.lastIndexOf(XpandTokens.LT + "ENDREM" + XpandTokens.RT);
+ if (index2 == -1) {
+ index2 = str.lastIndexOf(XpandTokens.LT + "ENDREM-" + XpandTokens.RT);
+ }
if (index2 == -1) {
return true;
}