summaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/document_p.cpp2
-rw-r--r--src/parser/text_p.cpp4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/parser/document_p.cpp b/src/parser/document_p.cpp
index 7852649..1c1a884 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 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_;