diff options
author | Claude Brisson <cbrisson@apache.org> | 2016-11-07 22:31:44 +0000 |
---|---|---|
committer | Claude Brisson <cbrisson@apache.org> | 2016-11-07 22:31:44 +0000 |
commit | d5cd2d8e1839dcbf780990863a26feef9003c116 (patch) | |
tree | f556fd512cf0174f49d1dcc4c35ef6bca7fced8b /velocity-engine-core/src | |
parent | 3fa16f8067b06a36805499a17264a8e2dec78bc8 (diff) | |
download | apache-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.jjt | 15 |
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(); + } } } |