This is an automated email from the ASF dual-hosted git repository.

cbrisson pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/velocity-engine.git


The following commit(s) were added to refs/heads/master by this push:
     new b422860c Unclosed #[[ ]]# statement should give a parsing error
b422860c is described below

commit b422860c6d8e4c6d7dd04e9adf0178552c519ee8
Author: Claude Brisson <[email protected]>
AuthorDate: Sat Aug 24 13:05:18 2024 +0200

    Unclosed #[[ ]]# statement should give a parsing error
---
 velocity-engine-core/src/main/parser/Parser.jjt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/velocity-engine-core/src/main/parser/Parser.jjt 
b/velocity-engine-core/src/main/parser/Parser.jjt
index 09889d00..4e790735 100644
--- a/velocity-engine-core/src/main/parser/Parser.jjt
+++ b/velocity-engine-core/src/main/parser/Parser.jjt
@@ -755,8 +755,8 @@ TOKEN :
     }
 }
 
-/* In all other states, keep the zero-width whitespace for now */
-<REFERENCE,REFMODIFIER,OLD_REFMODIFIER,REFMOD3,REFINDEX,DIRECTIVE,REFMOD2,DEFAULT,REFMOD,IN_TEXTBLOCK,IN_MULTILINE_COMMENT,IN_FORMAL_COMMENT,IN_SINGLE_LINE_COMMENT>
+/* In all other states except IN_TEXTBLOCK, keep the zero-width whitespace for 
now */
+<REFERENCE,REFMODIFIER,OLD_REFMODIFIER,REFMOD3,REFINDEX,DIRECTIVE,REFMOD2,DEFAULT,REFMOD,IN_MULTILINE_COMMENT,IN_FORMAL_COMMENT,IN_SINGLE_LINE_COMMENT>
 TOKEN :
 {
     <ZERO_WIDTH_WHITESPACE: "\u001C">

Reply via email to