Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
now parrot-nqp supports '\'', so remove \x27
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Dec 12, 2009
1 parent 1bf1ac4 commit 43df65a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions markdown/grammar.pg
Expand Up @@ -402,14 +402,14 @@ token _Sc { '(' | ')' | '>' }

token Title {
# TitleSingle
| \x27 ( [ <!_TitleS> <!Newline> . ]* ) \x27
| '\'' ( [ <!_TitleS> <!Newline> . ]* ) '\''
# TitleDouble
| '"' ( [ <!_TitleD> <!Newline> . ]* ) '"'
| ( '' )
}

token _TitleS {
\x27 <.Sp> [ ')' | <.Newline> ]
'\'' <.Sp> [ ')' | <.Newline> ]
}

token _TitleD {
Expand Down Expand Up @@ -446,7 +446,7 @@ token RefSrc { <.Nonspacechar>+ }

token RefTitle {
# RefTitleSingle
| \x27 ( [ <!_RefTitleS> . ]* ) \x27
| '\'' ( [ <!_RefTitleS> . ]* ) '\''
# RefTitleDouble
| '"' ( [ <!_RefTitleD> . ]* ) '"'
# RefTitleParens
Expand All @@ -456,7 +456,7 @@ token RefTitle {
}

token _RefTitleS {
[ \x27 <.Sp> <.Newline> | <.Newline> ]
[ '\'' <.Sp> <.Newline> | <.Newline> ]
}

token _RefTitleD {
Expand Down Expand Up @@ -536,7 +536,7 @@ token BlankLine { <.Sp> <.Newline> {*} }

token Quoted {
| '"' <-["]>* '"'
| \x27 <-[']>* \x27
| '\'' <-[']>* '\''
}

token HtmlAttribute {
Expand Down Expand Up @@ -572,7 +572,7 @@ token Sp { <Spacechar>* }

token Spnl { <.Sp> [<.Newline> <.Sp>]? }

token SpecialChar { '*' | '_' | '`' | '&' | '[' | ']' | '<' | '!' | '\\' | '.' | '-' | \x27 | '"' | '^' }
token SpecialChar { '*' | '_' | '`' | '&' | '[' | ']' | '<' | '!' | '\\' | '.' | '-' | '\'' | '"' | '^' }

token NormalChar { <!SpecialChar> <!Spacechar> <!Newline> . }

Expand Down Expand Up @@ -611,7 +611,7 @@ token Smart {
}

token Apostrophe {
\x27
'\''
{*}
}

Expand Down

0 comments on commit 43df65a

Please sign in to comment.