aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2016-11-07 22:31:44 +0000
committerClaude Brisson <cbrisson@apache.org>2016-11-07 22:31:44 +0000
commitd5cd2d8e1839dcbf780990863a26feef9003c116 (patch)
treef556fd512cf0174f49d1dcc4c35ef6bca7fced8b /velocity-engine-core/src
parent3fa16f8067b06a36805499a17264a8e2dec78bc8 (diff)
downloadapache-velocity-engine-d5cd2d8e1839dcbf780990863a26feef9003c116.tar.gz
[engine] fix parser bug for VTL like:
#foo()## #set($foo=$bar) git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1768603 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src')
-rw-r--r--velocity-engine-core/src/main/parser/Parser.jjt15
1 files changed, 15 insertions, 0 deletions
diff --git a/velocity-engine-core/src/main/parser/Parser.jjt b/velocity-engine-core/src/main/parser/Parser.jjt
index 759492e6..b31c226d 100644
--- a/velocity-engine-core/src/main/parser/Parser.jjt
+++ b/velocity-engine-core/src/main/parser/Parser.jjt
@@ -885,6 +885,11 @@ TOKEN :
{
inComment = false;
stateStackPop();
+ if (curLexState == REFERENCE || curLexState == REFMOD3)
+ {
+ // end of reference: pop again
+ stateStackPop();
+ }
}
}
@@ -896,6 +901,11 @@ TOKEN :
{
inComment = false;
stateStackPop();
+ if (curLexState == REFERENCE || curLexState == REFMOD3)
+ {
+ // end of reference: pop again
+ stateStackPop();
+ }
}
}
@@ -906,6 +916,11 @@ TOKEN :
{
inComment = false;
stateStackPop();
+ if (curLexState == REFERENCE || curLexState == REFMOD3)
+ {
+ // end of reference: pop again
+ stateStackPop();
+ }
}
}