From 52abe044a7b6b8be364f91be4ab52d4972431163 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Mon, 6 Dec 2010 08:04:58 +0100 Subject: Superscript text support added. --- src/parser/text_p.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/parser/text_p.cpp') diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp index 2fcdc7c..658aad0 100644 --- a/src/parser/text_p.cpp +++ b/src/parser/text_p.cpp @@ -28,7 +28,9 @@ text_p::text_p() : text_p::base_type(text_) { | lit("''") >> attr(SALT) >> +text_(_r1)>> "''" | lit('\'') >> attr(ALT) >> +text_(_r1) >> '\'' | lit('`') >> attr(CODE) >> +ptext_(val(L"`")) >> '`' - | lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$'; + | lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$' + | lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}")) >> '}' + | lit('^') >> attr(SUPER) >> +text_(val(L"*'`$ ")); ptext_ = +(echar_ | rchar_(_r1)); echar_ = lit('\\') >> char_; -- cgit v1.2.3-70-g09d2