diff dwtx/jface/text/rules/RuleBasedPartitionScanner.d @ 162:1a5b8f8129df

...
author Frank Benoit <benoit@tionex.de>
date Mon, 08 Sep 2008 00:51:37 +0200
parents eb21d3dfc767
children eb98a5cbfd78
line wrap: on
line diff
--- a/dwtx/jface/text/rules/RuleBasedPartitionScanner.d	Wed Aug 27 14:49:30 2008 +0200
+++ b/dwtx/jface/text/rules/RuleBasedPartitionScanner.d	Mon Sep 08 00:51:37 2008 +0200
@@ -60,7 +60,7 @@
     /**
      * Disallow setting the rules since this scanner
      * exclusively uses predicate rules.
-     * 
+     *
      * @param rules the sequence of rules controlling this scanner
      */
     public void setRules(IRule[] rules) {
@@ -121,7 +121,7 @@
         for (int i= 0; i < fRules.length; i++) {
             rule= cast(IPredicateRule) fRules[i];
             token= rule.getSuccessToken();
-            if (fContentType.equals(token.getData())) {
+            if (fContentType.equals(stringcast(token.getData()))) {
                 token= rule.evaluate(this, resume);
                 if (!token.isUndefined()) {
                     fContentType= null;