mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
new jspx parsing schema
This commit is contained in:
@@ -2,11 +2,15 @@ package com.intellij.psi.impl.source.jsp.jspJava;
|
||||
|
||||
import com.intellij.psi.impl.source.tree.JspElementType;
|
||||
import com.intellij.psi.impl.source.tree.LeafPsiElement;
|
||||
import com.intellij.psi.xml.XmlText;
|
||||
import com.intellij.util.CharTable;
|
||||
|
||||
public class JspText extends LeafPsiElement {
|
||||
public JspText(char[] buffer, int start, int end, CharTable table) {
|
||||
private final XmlText myFollowingText;
|
||||
|
||||
public JspText(XmlText text, char[] buffer, int start, int end, CharTable table) {
|
||||
super(JspElementType.HOLDER_TEMPLATE_DATA, buffer, start, end, -1, table);
|
||||
myFollowingText = text;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
@@ -16,4 +20,8 @@ public class JspText extends LeafPsiElement {
|
||||
public void setText(String text) {
|
||||
super.setText(text);
|
||||
}
|
||||
|
||||
public XmlText getFollowingText() {
|
||||
return myFollowingText;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,8 @@ import com.intellij.psi.impl.source.html.HtmlDocumentImpl;
|
||||
import com.intellij.psi.impl.source.html.HtmlTagImpl;
|
||||
import com.intellij.psi.impl.source.javadoc.*;
|
||||
import com.intellij.psi.impl.source.jsp.*;
|
||||
import com.intellij.psi.impl.source.jsp.jspJava.JspTemplateStatement;
|
||||
import com.intellij.psi.impl.source.jsp.jspJava.JspText;
|
||||
import com.intellij.psi.impl.source.jsp.jspJava.JspTemplateStatement;
|
||||
import com.intellij.psi.impl.source.tree.java.*;
|
||||
import com.intellij.psi.impl.source.xml.*;
|
||||
import com.intellij.psi.jsp.JspTokenType;
|
||||
@@ -126,7 +126,7 @@ public class Factory implements Constants {
|
||||
element = new JspDeclarationChameleonElement(type, buffer, startOffset, endOffset, lexerState, table);
|
||||
}
|
||||
else if (type == JspElementType.HOLDER_TEMPLATE_DATA) {
|
||||
element = new JspText(buffer, startOffset, endOffset, table);
|
||||
element = new JspText(null, buffer, startOffset, endOffset, table);
|
||||
}
|
||||
else {
|
||||
if (KEYWORD_BIT_SET.isInSet(type)) {
|
||||
|
||||
Reference in New Issue
Block a user