From 792bc5386756a42d622d5f023b40808553b912de Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Mon, 6 Dec 2010 08:26:12 +0100 Subject: Inline quotation support added. --- src/parser/document_p.cpp | 2 +- src/parser/text_p.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/parser') diff --git a/src/parser/document_p.cpp b/src/parser/document_p.cpp index 1c1a884..25679e9 100644 --- a/src/parser/document_p.cpp +++ b/src/parser/document_p.cpp @@ -16,5 +16,5 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "document_p.h" document_p::document_p() : document_p::base_type(document_) { - document_ = +text_(ph::val(L"*'`$^")); + document_ = +text_(ph::val(L"*'`$^@")); } diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp index 658aad0..878336d 100644 --- a/src/parser/text_p.cpp +++ b/src/parser/text_p.cpp @@ -30,7 +30,8 @@ text_p::text_p() : text_p::base_type(text_) { | lit('`') >> attr(CODE) >> +ptext_(val(L"`")) >> '`' | lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$' | lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}")) >> '}' - | lit('^') >> attr(SUPER) >> +text_(val(L"*'`$ ")); + | lit('^') >> attr(SUPER) >> +text_(val(L"*'`$ ")) + | lit(L"@_") >> attr(QUOTE) >> +text_(val(L"*'`$_")) >> '_'; ptext_ = +(echar_ | rchar_(_r1)); echar_ = lit('\\') >> char_; -- cgit v1.2.3-70-g09d2