import org.eclipse.jface.text.rules.WordRule;
/**
- * A Java code scanner.
+ * A HTML code scanner.
*/
public class HTMLCodeScanner extends RuleBasedScanner {
public HTMLCodeScanner(PHPColorProvider provider) {
keyword = new Token(new TextAttribute(provider.getColor(PHPColorProvider.KEYWORD)));
- IToken type = new Token(new TextAttribute(provider.getColor(PHPColorProvider.TYPE)));
+ IToken type = new Token(new TextAttribute(provider.getColor(PHPColorProvider.FUNCTION_NAME)));
IToken string = new Token(new TextAttribute(provider.getColor(PHPColorProvider.STRING)));
IToken comment = new Token(new TextAttribute(provider.getColor(PHPColorProvider.SINGLE_LINE_COMMENT)));
IToken multi_comment = new Token(new TextAttribute(provider.getColor(PHPColorProvider.MULTI_LINE_COMMENT)));