sync with peg-markdown

See https://github.com/jgm/peg-markdown/commit/a4713d59
This commit is contained in:
Michael Teichgräber 2011-01-07 18:40:39 +01:00
parent b3f7b37771
commit ef9d2c6af6
2 changed files with 3 additions and 3 deletions

View File

@ -436,7 +436,7 @@ Space = Spacechar+
{ $$ = mk_str(" ") { $$ = mk_str(" ")
$$.key = SPACE } $$.key = SPACE }
Str = < NormalChar (NormalChar | '_'+ &NormalChar)* > Str = < NormalChar (NormalChar | '_'+ &Alphanumeric)* >
{ $$ = mk_str(yytext) } { $$ = mk_str(yytext) }
EscapedChar = '\\' !Newline < [-\\`|*_{}[\]()#+.!><] > EscapedChar = '\\' !Newline < [-\\`|*_{}[\]()#+.!><] >

View File

@ -7388,7 +7388,7 @@ func (p *yyParser) Init() {
position, thunkPosition = position0, thunkPosition0 position, thunkPosition = position0, thunkPosition0
return false return false
}, },
/* 106 Str <- (< NormalChar (NormalChar / ('_'+ &NormalChar))* > { yy = mk_str(yytext) }) */ /* 106 Str <- (< NormalChar (NormalChar / ('_'+ &Alphanumeric))* > { yy = mk_str(yytext) }) */
func() bool { func() bool {
position0, thunkPosition0 := position, thunkPosition position0, thunkPosition0 := position, thunkPosition
begin = position begin = position
@ -7421,7 +7421,7 @@ func (p *yyParser) Init() {
} }
{ {
position764, thunkPosition764 := position, thunkPosition position764, thunkPosition764 := position, thunkPosition
if !p.rules[ruleNormalChar]() { if !p.rules[ruleAlphanumeric]() {
goto l759 goto l759
} }
position, thunkPosition = position764, thunkPosition764 position, thunkPosition = position764, thunkPosition764