From dc0ac72c987ec48c6b2a90d0056b4e79a3be092b Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 4 Dec 2010 22:20:31 +0100 Subject: Inline code text support partially added. The "matching" constraint is not honored yet. --- src/parser/text_p.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/parser') 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"*'`"); } -- cgit v1.2.3-70-g09d2