diff options
author | Jeffrey Overbey | 2007-08-16 20:03:08 +0000 |
---|---|---|
committer | Jeffrey Overbey | 2007-08-16 20:03:08 +0000 |
commit | 5f93d4e0b9cfa51f3f61c009d6b86c5bec083ae3 (patch) | |
tree | d649b4202615b23cbbffc42602fd4ed50920b23f | |
parent | ae9c8fe28bb748b059a548838632d1945900d46d (diff) | |
download | org.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.java | 4 |
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); |