Skip to content

Commit

Permalink
Fix paragraph and abbreviated comments
Browse files Browse the repository at this point in the history
Except for table comments, that is
  • Loading branch information
hoelzro committed Sep 4, 2014
1 parent 70d08dd commit 6869029
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Perl6/Grammar.nqp
Expand Up @@ -607,7 +607,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
|| ($<spaces>.to - $<spaces>.from) <= $*VMARGIN }>

$<text> = [
\h* <!before '=' \w> <pod_string> <pod_newline>
\h* <!before '=' \w> <pod_string> [ <pod_newline> | $ ]
] +
}

Expand Down Expand Up @@ -823,7 +823,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
'=for' \h+ 'comment' {}
:my $*POD_ALLOW_FCODES := nqp::getlexdyn('$*POD_ALLOW_FCODES');
<pod_configuration($<spaces>)> <pod_newline>
$<pod_content> = [ \h* <!before '=' \w> \N+ \n ]+
$<pod_content> = [ \h* <!before '=' \w> \N+ [ \n | $ ] ]*
}

token pod_block:sym<paragraph_table> {
Expand Down Expand Up @@ -868,7 +868,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
'=comment' {}
:my $*POD_ALLOW_FCODES := nqp::getlexdyn('$*POD_ALLOW_FCODES');
[\h*\n|\h+]
$<pod_content> = [ \h* <!before '=' \w> \N+ \n ]*
$<pod_content> = [ \h* <!before '=' \w> \N+ [ \n | $ ] ]*
}

token pod_block:sym<abbreviated_table> {
Expand All @@ -890,7 +890,7 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
[ <!before \h* '=' \w> <pod_line> ]*
}

token pod_line { <pod_string>**1 <pod_newline> }
token pod_line { <pod_string>**1 [ <pod_newline> | $ ] }

token pod_newline {
\h* \n
Expand Down

0 comments on commit 6869029

Please sign in to comment.