8134484: disallow backquotes as heredoc end marker delimiters
Reviewed-by: attila, sundar
This commit is contained in:
parent
f6fe25800c
commit
089307f286
@ -1453,7 +1453,7 @@ public class Lexer extends Scanner {
|
||||
|
||||
// Scan identifier. It might be quoted, indicating that no string editing should take place.
|
||||
final char quoteChar = ch0;
|
||||
final boolean noStringEditing = isStringDelimiter(quoteChar);
|
||||
final boolean noStringEditing = quoteChar == '"' || quoteChar == '\'';
|
||||
if (noStringEditing) {
|
||||
skip(1);
|
||||
}
|
||||
|
@ -44,10 +44,6 @@ print(<<'EOM')
|
||||
${a}${b}
|
||||
EOM
|
||||
|
||||
print(<<`EOM`)
|
||||
${c}
|
||||
EOM
|
||||
|
||||
print(<<"EOM")
|
||||
$\{a}
|
||||
EOM
|
||||
|
@ -1,5 +1,4 @@
|
||||
23
|
||||
${a}${b}
|
||||
${a}${b}
|
||||
${c}
|
||||
$\{a}
|
||||
|
Loading…
Reference in New Issue
Block a user