Search in sources :

Example 1 with HtmlParsing

use of com.intellij.lang.html.HtmlParsing in project intellij-community by JetBrains.

the class HtmlBuilderDriver method createBuilderAndParse.

@Override
protected PsiBuilder createBuilderAndParse() {
    final ParserDefinition htmlParserDef = LanguageParserDefinitions.INSTANCE.forLanguage(HTMLLanguage.INSTANCE);
    assert htmlParserDef != null;
    PsiBuilder b = PsiBuilderFactory.getInstance().createBuilder(htmlParserDef, htmlParserDef.createLexer(null), getText());
    new HtmlParsing(b).parseDocument();
    return b;
}
Also used : ParserDefinition(com.intellij.lang.ParserDefinition) HtmlParsing(com.intellij.lang.html.HtmlParsing) PsiBuilder(com.intellij.lang.PsiBuilder)

Aggregations

ParserDefinition (com.intellij.lang.ParserDefinition)1 PsiBuilder (com.intellij.lang.PsiBuilder)1 HtmlParsing (com.intellij.lang.html.HtmlParsing)1