summaryrefslogtreecommitdiff
path: root/src/parser/text_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/text_p.cpp')
-rw-r--r--src/parser/text_p.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp
index 46dd37b..2fcdc7c 100644
--- a/src/parser/text_p.cpp
+++ b/src/parser/text_p.cpp
@@ -22,12 +22,13 @@ text_p::text_p() : text_p::base_type(text_) {
text_ = stext_(_r1) | ptext_(_r1);
- stext_ = lit("***") >> attr(VSEMPH) >> +text_(val(L"*'`")) >> "***"
- | lit("**") >> attr(SEMPH) >> +text_(val(L"*'`")) >> "**"
- | lit('*') >> attr(EMPH) >> +text_(val(L"*'`")) >> '*'
- | lit("''") >> attr(SALT) >> +text_(val(L"*'`"))>> "''"
- | lit('\'') >> attr(ALT) >> +text_(val(L"*'`")) >> '\''
- | lit('`') >> attr(CODE) >> +ptext_(val(L"`")) >> '`';
+ stext_ = lit("***") >> attr(VSEMPH) >> +text_(_r1) >> "***"
+ | lit("**") >> attr(SEMPH) >> +text_(_r1) >> "**"
+ | lit('*') >> attr(EMPH) >> +text_(_r1) >> '*'
+ | lit("''") >> attr(SALT) >> +text_(_r1)>> "''"
+ | lit('\'') >> attr(ALT) >> +text_(_r1) >> '\''
+ | lit('`') >> attr(CODE) >> +ptext_(val(L"`")) >> '`'
+ | lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$';
ptext_ = +(echar_ | rchar_(_r1));
echar_ = lit('\\') >> char_;