Fixed exponential problem with Emph/Strong. [jgm/peg-markdown]

See https://github.com/jgm/peg-markdown/commit/c258a9a
This commit is contained in:
Michael Teichgräber 2012-04-30 10:14:27 +02:00
parent ba2d82f616
commit 5bebe88174
3 changed files with 4 additions and 4 deletions

View File

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

View File

@ -28,7 +28,7 @@ import (
) )
const ( const (
parserIfaceVersion_14 = iota parserIfaceVersion_15 = iota
) )
// Semantic value of a parsing action. // Semantic value of a parsing action.
@ -532,7 +532,7 @@ UlLine = < "____" '_'* > | < Spacechar '_'+ &Spacechar >
Emph = EmphStar | EmphUl Emph = EmphStar | EmphUl
OneStarOpen = !StarLine '*' !Spacechar !Newline OneStarOpen = !StarLine '*' !Spacechar !Newline
OneStarClose = !Spacechar !Newline a:Inline !StrongStar '*' { $$ = a } OneStarClose = !Spacechar !Newline a:Inline '*' { $$ = a }
EmphStar = OneStarOpen EmphStar = OneStarOpen
a:StartList a:StartList

2
portid
View File

@ -1 +1 @@
177 178