Commit 49b2c9b
committed
(GH-14) Fix inconsistency in PPI::Token::HereDoc->heredoc().
Due to a bug in PPI::Token::Heredoc, $token->heredoc() does not include the
terminator line when the terminator is a simple bareword, but it includes the
terminator line in the other cases (single/double quoted , commands, escaped).
I wrote a patch to resolve this in PPI (see
Perl-Critic/PPI#71), but in the meantime this addresses
the inconsistency.1 parent 92f56a4 commit 49b2c9b
File tree
1 file changed
+11
-0
lines changed- lib/Perl/Critic/Policy/ValuesAndExpressions
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
416 | 427 | | |
417 | 428 | | |
418 | 429 | | |
| |||
0 commit comments