Package org.cfeclipse.cfml.editors.partitioner.scanners.rules

Examples of org.cfeclipse.cfml.editors.partitioner.scanners.rules.PredicateWordRule


      allkeys[i++] = op;
      allkeys[i++] = op.toUpperCase();
    }
   
    CFKeywordDetector cfkd = new CFKeywordDetector();
    PredicateWordRule words = new PredicateWordRule(cfkd,cftag,  allkeys,  cfkeyword);
    words.setCaseSensitive(false);
   
    rules[3] = words;
   
    // Add generic whitespace rule.
    rules[4] = new ShowWhitespaceRule(new CFWhitespaceDetector());
View Full Code Here


      allkeys[i++] = opname.toUpperCase();
    }
   
    //build the word highlighter
    CFKeywordDetector cfkd = new CFKeywordDetector();
    PredicateWordRule words = new PredicateWordRule(
      cfkd,
      cfdefault,
      allkeys,
      cfkeyword
    );
    words.setCaseSensitive(false);

    //now do the opperators
    set = dic.getOperators();
    it = set.iterator();
    while(it.hasNext())
    {
      String opp = (String)it.next().toString().toLowerCase();
      words.addWord(opp, cfopperators);
    }

    //now do the cffuntions so they look pretty too :)
    set = dic.getFunctions();
    it = set.iterator();
    while(it.hasNext())
    {
      String fun = (String)it.next().toString().toLowerCase();
      words.addWord(fun, cffunction);
    }
    rules.add(words);
   
    //now do the scopes so they look pretty too :)
    set = dic.getAllScopes();
    it = set.iterator();
    while(it.hasNext())
    {
      String scope = (String)it.next().toString().toLowerCase();
      words.addWord(scope, cfscope);
    }
    words.addWord("application", cfbuiltinscope);
    words.addWord("arguments", cfbuiltinscope);
    words.addWord("attributes", cfbuiltinscope);
    words.addWord("caller", cfbuiltinscope);
    words.addWord("client", cfbuiltinscope);
    words.addWord("cookie", cfbuiltinscope);
    words.addWord("flash", cfbuiltinscope);
    words.addWord("form", cfbuiltinscope);
    words.addWord("request", cfbuiltinscope);
    words.addWord("server", cfbuiltinscope);
    words.addWord("session", cfbuiltinscope);
    words.addWord("this",cfbuiltinscope);
    words.addWord("thistag", cfbuiltinscope);
    words.addWord("thread", cfbuiltinscope);
    words.addWord("url", cfbuiltinscope);
    words.addWord("variables",cfbuiltinscope);

    rules.add(words);

    IRule[] rulearry = new IRule[rules.size()];
    rules.toArray(rulearry);
View Full Code Here

    }

   
    //build the word highlighter
    SQLKeywordDetector cfqkd = new SQLKeywordDetector();
    PredicateWordRule words = new PredicateWordRule(
      cfqkd,
      cfquerytext,
      allkeys,
      sqlkeyword
    );
   
    words.setCaseSensitive(false);
   
    //now do the cffunctions so they look pretty too :)
    set = dic.getFunctions();
    it = set.iterator();
    while(it.hasNext())
    {
      String fun = (String)it.next();
      words.addWord(fun, cffunction);
    }

    rules.add(words);
   
    IRule[] rulearry = new IRule[rules.size()];
View Full Code Here

    {
      allkeys[i++] = (String)it.next();
    }
   
    CFKeywordDetector cfkd = new CFKeywordDetector();
    PredicateWordRule words = new PredicateWordRule(
      cfkd,
      defaulttoken,
      allkeys,
      keyword
    );
   
    ///////////////////////////////////////////////////////////////////////
    //do any known functions
    //get any script specific functions (alert, parseInt, confirm, et cetra)
    set = jssd.getFunctions();
    i=0;
    //String allfuncs[] = new String[set.size()];
    it = set.iterator();
    while(it.hasNext())
    {
      //allfuncs[i++] = (String)it.next();
      String op = (String)it.next();
      //wr.addWord(op,function);
      words.addWord(op,function);
    }
   
    rules.add(words);
   
    ///////////////////////////////////////////////////////////////////////
View Full Code Here

TOP

Related Classes of org.cfeclipse.cfml.editors.partitioner.scanners.rules.PredicateWordRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.