8134484: disallow backquotes as heredoc end marker delimiters

Reviewed-by: attila, sundar
This commit is contained in:
Michael Haupt 2015-08-26 13:11:35 +02:00
parent f6fe25800c
commit 089307f286
3 changed files with 1 additions and 6 deletions

View File

@ -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);
}

View File

@ -44,10 +44,6 @@ print(<<'EOM')
${a}${b}
EOM
print(<<`EOM`)
${c}
EOM
print(<<"EOM")
$\{a}
EOM

View File

@ -1,5 +1,4 @@
23
${a}${b}
${a}${b}
${c}
$\{a}