public
Description: An implementation of markdown in C, using a PEG grammar
Clone URL: git://github.com/jgm/peg-markdown.git
Modifed StarLine/UlLine so they don't gobble the trailing space.
This helps with cases like:  '*hi * ** * there*', which should be
one big emphasized string with some asterisks inside.
jgm (author)
Wed Jun 18 11:23:36 -0700 2008
commit  ac82c2da187e0a660c46ca334bce5454a15037d5
tree    48df44cc779dbac20b8669d02d87e316f0760195
parent  22058c5a6890133725ead276f5ade18c0807a91b
...
382
383
384
385
386
 
 
387
388
389
...
382
383
384
 
 
385
386
387
388
389
0
@@ -382,8 +382,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.