From dafc808f3820d2c5b902c92311bef6da9ce1b8bb Mon Sep 17 00:00:00 2001 From: Eugene Vigdorchik Date: Wed, 19 Jan 2005 13:27:07 +0300 Subject: [PATCH] (no message) --- .../psi/impl/source/parsing/DeclarationParsing.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/com/intellij/psi/impl/source/parsing/DeclarationParsing.java b/source/com/intellij/psi/impl/source/parsing/DeclarationParsing.java index c5d0e6451e2c..17e93a4a3c5f 100644 --- a/source/com/intellij/psi/impl/source/parsing/DeclarationParsing.java +++ b/source/com/intellij/psi/impl/source/parsing/DeclarationParsing.java @@ -77,9 +77,11 @@ public class DeclarationParsing extends Parsing { if (context == FILE_CONTEXT) return null; } else if (tokenType == JSP_HOLDER_TOKEN) { - LeafElement element = Factory.createLeafElement(HOLDER_TEMPLATE_DATA, lexer.getBuffer(), lexer.getTokenStart(), lexer.getTokenEnd(), lexer.getState(), myContext.getCharTable()); + final CompositeElement declaration = Factory.createCompositeElement(JSP_TEMPLATE_DECLARATION); + LeafElement leaf = Factory.createLeafElement(HOLDER_TEMPLATE_DATA, lexer.getBuffer(), lexer.getTokenStart(), lexer.getTokenEnd(), lexer.getState(), myContext.getCharTable()); + TreeUtil.addChildren(declaration, leaf); lexer.advance(); - return element; + return declaration; } else if (!MODIFIER_BIT_SET.isInSet(tokenType) && !CLASS_KEYWORD_BIT_SET.isInSet(tokenType) && tokenType != AT && (context == CODE_BLOCK_CONTEXT || tokenType != LT)){