diff --git a/xml/xml-psi-impl/src/com/intellij/html/embedding/HtmlRawTextElementType.kt b/xml/xml-psi-impl/src/com/intellij/html/embedding/HtmlRawTextElementType.kt index 1e0643ac4c5f..2d44c930fdf1 100644 --- a/xml/xml-psi-impl/src/com/intellij/html/embedding/HtmlRawTextElementType.kt +++ b/xml/xml-psi-impl/src/com/intellij/html/embedding/HtmlRawTextElementType.kt @@ -6,8 +6,8 @@ import com.intellij.lang.PsiBuilder import com.intellij.lang.html.HTMLLanguage import com.intellij.lexer.HtmlRawTextLexer import com.intellij.lexer.Lexer +import com.intellij.openapi.components.service import com.intellij.psi.PsiElement -import com.intellij.psi.impl.source.html.HtmlRawTextImpl import com.intellij.psi.tree.IStrongWhitespaceHolderElementType import com.intellij.psi.xml.XmlElementType.XML_TEXT @@ -23,7 +23,10 @@ object HtmlRawTextElementType : start.done(XML_TEXT) } - override fun createLexer(): Lexer = HtmlRawTextLexer() + override fun createLexer(): Lexer = + HtmlRawTextLexer() - override fun createPsi(node: ASTNode): PsiElement = HtmlRawTextImpl(node) + override fun createPsi(node: ASTNode): PsiElement = + service() + .createRawTextElement(node) } \ No newline at end of file