Description
Given the following VTL:
#set($var = "
" )
#set($var2 = "${var}")
results in the following parse error:
Encountered "${" at test.vm[line 2, column 15]
Was expecting one of:
<RPAREN> ...
...
the problem is that when parsing the string literal "
" the second double quote is escaped. This was actually a bug that was introduced in 1.6.x, but I don't think we necessarily need to fix it in that branch.
Attachments
Issue Links
- is related to
-
VELOCITY-520 "\u0061" causes lexer exception
- Resolved
-
VELOCITY-587 Backslashes throw lexical errors in double-quoted strings
- Resolved
-
VELOCITY-519 Java escape sequences should work in Velocity macros
- Closed
-
VELOCITY-555 Escape quotes in interpolated strings (both ' and ") by doubling them ('' and "")
- Closed