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.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp
index 4aa6a68..bd16a60 100644
--- a/src/parser/text_p.cpp
+++ b/src/parser/text_p.cpp
@@ -22,11 +22,11 @@ text_p::text_p() : text_p::base_type(text_) {
text_ = stext_(_r1) | pstext_(_r1) | atom_ | ptext_(_r1);
- 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) >> '\''
+ stext_ = lit("***") >> attr(VSEMPH) >> +text_(ph::val(L"*'`$@_[")) >> "***"
+ | lit("**") >> attr(SEMPH) >> +text_(ph::val(L"*'`$@_[")) >> "**"
+ | lit('*') >> attr(EMPH) >> +text_(ph::val(L"*'`$@_[")) >> '*'
+ | lit("''") >> attr(SALT) >> +text_(ph::val(L"*'`$@_["))>> "''"
+ | lit('\'') >> attr(ALT) >> +text_(ph::val(L"*'`$@_[")) >> '\''
| lit('`') >> attr(CODE) >> +ptext_(val(L"`")) >> '`'
| lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$'
| lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}[")) >> '}'