Changed order of AtxHeading & SetextHeading in Heading. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/a3b97b3
This commit is contained in:
Michael Teichgräber 2012-04-30 01:06:43 +02:00
parent 0a5e33b54d
commit cfb6c5e36b
2 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ const (
// rebuild it using // rebuild it using
// make nuke // make nuke
// make parser // make parser
needParserIfaceVersion = parserIfaceVersion_2 needParserIfaceVersion = parserIfaceVersion_3
) )
// Markdown Options: // Markdown Options:

View File

@ -28,7 +28,7 @@ import (
) )
const ( const (
parserIfaceVersion_2 = iota parserIfaceVersion_3 = iota
) )
// Semantic value of a parsing action. // Semantic value of a parsing action.
@ -160,7 +160,7 @@ 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) } SetextBottom2 { $$ = p.mkList(H2, a) }
Heading = AtxHeading | SetextHeading Heading = SetextHeading | AtxHeading
BlockQuote = a:BlockQuoteRaw BlockQuote = a:BlockQuoteRaw
{ $$ = p.mkElem(BLOCKQUOTE) { $$ = p.mkElem(BLOCKQUOTE)