rules.add(new MultiLineRule("/*" , "*/" , comment));
rules.add(new EndOfLineRule("//", comment));
rules.add(new SingleLineRule("\"", "\"", string, '\\'));
rules.add(new SingleLineRule("\'", "\'", string, '\\'));
WordRule wordRule = new WordRule(new JavaWordDetector(), normal);
for(int i=0;i<KEYWORDS.length;i++){
wordRule.addWord(KEYWORDS[i], keyword);
}
rules.add(wordRule);