Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Overbey2007-08-16 20:03:08 +0000
committerJeffrey Overbey2007-08-16 20:03:08 +0000
commit5f93d4e0b9cfa51f3f61c009d6b86c5bec083ae3 (patch)
treed649b4202615b23cbbffc42602fd4ed50920b23f
parentae9c8fe28bb748b059a548838632d1945900d46d (diff)
downloadorg.eclipse.photran-5f93d4e0b9cfa51f3f61c009d6b86c5bec083ae3.tar.gz
org.eclipse.photran-5f93d4e0b9cfa51f3f61c009d6b86c5bec083ae3.tar.xz
org.eclipse.photran-5f93d4e0b9cfa51f3f61c009d6b86c5bec083ae3.zip
Fixed bug preventing Sales highlighting from activating
-rw-r--r--org.eclipse.photran.ui/src/org/eclipse/photran/internal/ui/editor/FortranKeywordRuleBasedScanner.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.photran.ui/src/org/eclipse/photran/internal/ui/editor/FortranKeywordRuleBasedScanner.java b/org.eclipse.photran.ui/src/org/eclipse/photran/internal/ui/editor/FortranKeywordRuleBasedScanner.java
index 09bf4680..a7bb0b3a 100644
--- a/org.eclipse.photran.ui/src/org/eclipse/photran/internal/ui/editor/FortranKeywordRuleBasedScanner.java
+++ b/org.eclipse.photran.ui/src/org/eclipse/photran/internal/ui/editor/FortranKeywordRuleBasedScanner.java
@@ -259,12 +259,12 @@ public class FortranKeywordRuleBasedScanner extends RuleBasedScanner
//wordRule = new FixedFormIdentifierWordRule(new FortranWordDetector(), colorIdentifiers);
}
+ Eclipse33WordRule wordRule = new Eclipse33WordRule(new FortranWordDetector(), Token.UNDEFINED, true);
SalesScanKeywordRule salesRule = new SalesScanKeywordRule(new FortranWordDetector(), colorIdentifiers);
- Eclipse33WordRule wordRule = new Eclipse33WordRule(new FortranWordDetector(), colorIdentifiers, true);
createSpecialWordRules(salesRule, wordRule);
rules[i++] = wordRule;
- rules[i++] = salesRule; // Apply Sales last, since it will
+ rules[i++] = salesRule; // Apply Sales last, since it will mark "everything else" as an identifier
setRules(rules);

Back to the top