diff options
author | Tony Cook <tony@develop-help.com> | 2015-07-23 15:34:43 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2015-07-23 15:34:43 +1000 |
commit | 64821df16a716bfc005acb06c7dc5b72afabe38d (patch) | |
tree | 5a93030e1cd196db87469b22eeb1014eefd077dd /toke.c | |
parent | 5cce15f303ed613cd36c5bc28b7c05aecb464300 (diff) | |
download | perl-64821df16a716bfc005acb06c7dc5b72afabe38d.tar.gz |
[perl #123961] handle a missing closing ` for -DT output
Diffstat (limited to 'toke.c')
-rw-r--r-- | toke.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -6310,7 +6310,13 @@ Perl_yylex(pTHX) case '`': s = scan_str(s,FALSE,FALSE,FALSE,NULL); - DEBUG_T( { printbuf("### Saw backtick string before %s\n", s); } ); + DEBUG_T( { + if (s) + printbuf("### Saw backtick string before %s\n", s); + else + PerlIO_printf(Perl_debug_log, + "### Saw unterminated backtick string\n"); + } ); if (PL_expect == XOPERATOR) no_op("Backticks",s); if (!s) |