token = syntaxManager.getSyntaxToken(SyntaxManager.Java.BRACKET);
rules.add(new BracketRule(token));
// Add word rule for keywords, types, and constants.
wordRule = new WordRule(new JavaKeywordDetectorAdaptor(), defaultToken);
for (String[] arr : HIGHLIGHT) {
for (String str : arr) {
wordRule.addWord(str, keywordToken);
}
}