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.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp
index 3546f5b..22e2a12 100644
--- a/src/parser/text_p.cpp
+++ b/src/parser/text_p.cpp
@@ -25,9 +25,10 @@ text_p::text_p() : text_p::base_type(text_) {
| lit("**") >> attr(SEMPH) >> +text_ >> "**"
| lit('*') >> attr(EMPH) >> +text_ >> '*'
| lit("''") >> attr(SALT) >> +text_ >> "''"
- | lit('\'') >> attr(ALT) >> +text_ >> '\'';
+ | lit('\'') >> attr(ALT) >> +text_ >> '\''
+ | lit('`') >> attr(CODE) >> +ptext_ >> '`';
ptext_ = +(echar_ | rchar_);
echar_ = lit('\\') >> char_;
- rchar_ = char_ - char_(L"*'");
+ rchar_ = char_ - char_(L"*'`");
}