From a032b690e8f4f19baee69914b8ba1c6164048cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Teichgr=C3=A4ber?= Date: Tue, 11 Jun 2013 02:53:42 +0200 Subject: [PATCH] =?UTF-8?q?Sp=3F=20is=20redundant=E2=80=A6=20[jgm/peg-mark?= =?UTF-8?q?down]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/jgm/peg-markdown/commit/b220285 --- parser.leg | 8 ++++---- portid | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/parser.leg b/parser.leg index 93eac70..29b978f 100644 --- a/parser.leg +++ b/parser.leg @@ -138,12 +138,12 @@ Para = NonindentSpace a:Inlines BlankLine+ Plain = a:Inlines { $$ = a; $$.key = PLAIN } -AtxInline = !Newline !(Sp? '#'* Sp Newline) Inline +AtxInline = !Newline !(Sp '#'* Sp Newline) Inline AtxStart = &'#' < ( "######" | "#####" | "####" | "###" | "##" | "#" ) > { $$ = p.mkElem(H1 + (len(yytext) - 1)) } -AtxHeading = s:AtxStart Sp? a:StartList ( AtxInline { a = cons($$, a) } )+ (Sp? '#'* Sp)? Newline +AtxHeading = s:AtxStart Sp a:StartList ( AtxInline { a = cons($$, a) } )+ (Sp '#'* Sp)? Newline { $$ = p.mkList(s.key, a) s = nil } @@ -154,11 +154,11 @@ SetextBottom1 = '='+ Newline SetextBottom2 = '-'+ Newline SetextHeading1 = &(RawLine SetextBottom1) - a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp? Newline + a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp Newline SetextBottom1 { $$ = p.mkList(H1, a) } SetextHeading2 = &(RawLine SetextBottom2) - a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp? Newline + a:StartList ( !Endline Inline { a = cons($$, a) } )+ Sp Newline SetextBottom2 { $$ = p.mkList(H2, a) } Heading = SetextHeading | AtxHeading diff --git a/portid b/portid index c0bdf6d..6a359b8 100644 --- a/portid +++ b/portid @@ -1 +1 @@ -af94d25475d3 +6b367c802475