Skip to content

Commit 2385768

Browse files
committed
Prevent a newline from breaking apart a code block
1 parent 1c80bad commit 2385768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Language/regexes.pod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ C<q:to/EOS/...EOS> "heredoc" syntax removes leading indention to the
402402
same level as the C<EOS> marker, so that first, second and last lines have no
403403
leading space, and the third and fourth lines have two leading spaces each).
404404
405+
=begin code
405406
my $str = q:to/EOS/;
406407
There was a young man of Japan
407408
Whose limericks never would scan.
@@ -419,6 +420,7 @@ leading space, and the third and fourth lines have two leading spaces each).
419420
say so $str ~~ / scan $$/; # False (there is a . between "scan"
420421
# and the end of line)
421422
say so $str ~~ / '."' $$/; # True (at the last line)
423+
=end code
422424
423425
=head2 X<<<<C<<< << >>> and C<<< >> >>>, left and right word boundary|regex,<<;regex,>>;regex,«;regex,»>>>>
424426

0 commit comments

Comments
 (0)