Created
August 29, 2012 21:03
-
-
Save tadzik/3518937 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Perl6/Grammar.pm b/src/Perl6/Grammar.pm | |
index 99763a2..fdb4652 100644 | |
--- a/src/Perl6/Grammar.pm | |
+++ b/src/Perl6/Grammar.pm | |
@@ -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>* | |
@@ -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>]* | |
} | |
@@ -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>]* | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment