WordRule wr = new WordRule(detector,defaut);
for(int i = 0 ; i < KEYWORDS.length ; ++i) {
wr.addWord(KEYWORDS[i], keyword);
}
List<IRule> ruleListe = new ArrayList<IRule>();
ruleListe.add(new EndOfLineRule ("--define", comment));
for (int i = 0; i < SIMPLE_COMMENT.length; i++) {
String s = SIMPLE_COMMENT[i];
ruleListe.add(new EndOfLineRule (s, comment));
}
// ruleListe.add(new EndOfLineRule ("--", comment));
// ruleListe.add(new EndOfLineRule("//",comment));
ruleListe.add(new MultiLineRule("/*","*/",comment,(char)0,true));
ruleListe.add(new SingleLineRule("\"", "\"", string));