Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patch from tadzik++ to add missing $<spaces>.
  • Loading branch information
jnthn committed Aug 30, 2012
1 parent 6ae1f62 commit b4a2b7a
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/Perl6/Grammar.pm
Expand Up @@ -304,7 +304,9 @@ grammar Perl6::Grammar is HLL::Grammar {


token pod_block:sym<delimited_table> {
^^ \h* '=begin' \h+ 'table'
^^
$<spaces> = [ \h* ]
'=begin' \h+ 'table'
<pod_configuration($<spaces>)> <pod_newline>+
[
<table_row>*
Expand Down Expand Up @@ -344,13 +346,17 @@ grammar Perl6::Grammar is HLL::Grammar {
}

token pod_block:sym<paragraph_raw> {
^^ \h* '=for' \h+ $<type>=[ 'code' | 'comment' ]
^^
$<spaces> = [ \h* ]
'=for' \h+ $<type>=[ 'code' | 'comment' ]
<pod_configuration($<spaces>)> <pod_newline>
$<pod_content> = [ \h* <!before '=' \w> \N+ \n ]+
}

token pod_block:sym<paragraph_table> {
^^ \h* '=for' \h+ 'table'
^^
$<spaces> = [ \h* ]
'=for' \h+ 'table'
<pod_configuration($<spaces>)> <pod_newline>
[ <!before \h* \n> <table_row>]*
}
Expand All @@ -373,13 +379,17 @@ grammar Perl6::Grammar is HLL::Grammar {
}

token pod_block:sym<abbreviated_raw> {
^^ \h* '=' $<type>=[ 'code' | 'comment' ]
^^
$<spaces> = [ \h* ]
'=' $<type>=[ 'code' | 'comment' ]
<pod_configuration($<spaces>)> \s
$<pod_content> = [ \h* <!before '=' \w> \N+ \n ]*
}

token pod_block:sym<abbreviated_table> {
^^ \h* '=table' <pod_configuration($<spaces>)> <pod_newline>
^^
$<spaces> = [ \h* ]
'=table' <pod_configuration($<spaces>)> <pod_newline>
[ <!before \h* \n> <table_row>]*
}

Expand Down

0 comments on commit b4a2b7a

Please sign in to comment.