public
Description: An implementation of markdown in C, using a PEG grammar
Clone URL: git://github.com/jgm/peg-markdown.git
Fixed bug in parsing input:  "****hi".
jgm (author)
Wed Jul 23 16:40:55 -0700 2008
commit  656f5c3054a6f2d0c2ce5314685e1a98a6370051
tree    e522991205fbb18fb931be7872a73e172ec75a69
parent  51ea8667729b175cd6b1658777f6a66ec61d8eb5
...
402
403
404
405
406
 
 
407
408
409
...
402
403
404
 
 
405
406
407
408
409
0
@@ -402,8 +402,8 @@ Symbol = < SpecialChar >
0
 # This keeps the parser from getting bogged down on long strings of '*' or '_',
0
 # or strings of '*' or '_' with space on each side:
0
 UlOrStarLine = UlLine | StarLine { $$ = mk_str(yytext); }
0
-StarLine = < "****" '*'* | Spacechar '*'+ &Spacechar >
0
-UlLine = < "____" '_'* | Spacechar '_'+ &Spacechar >
0
+StarLine = < "****" '*'* > | < Spacechar '*'+ &Spacechar >
0
+UlLine = < "____" '_'* > | < Spacechar '_'+ &Spacechar >
0
 
0
 Emph = EmphStar | EmphUl
0
 

Comments

    No one has commented yet.