summaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@fastmail.net>2010-12-07 06:33:32 +0100
committerGrégoire Duchêne <gduchene@fastmail.net>2010-12-07 06:33:32 +0100
commit70cf7c0f25d482e3e90285f8045c6a442268abbe (patch)
tree74ddced2e57ea114fce9486dc90342cad5770ce0 /src/parser
parent381f491b3eecbf90f2202a37f3c43c7f487f8713 (diff)
Subscript text support added (once again).
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/text_p.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser/text_p.cpp b/src/parser/text_p.cpp
index 16cb703..af454fe 100644
--- a/src/parser/text_p.cpp
+++ b/src/parser/text_p.cpp
@@ -31,7 +31,8 @@ text_p::text_p() : text_p::base_type(text_) {
| lit('$') >> attr(MATH) >> +ptext_(val(L"$")) >> '$'
| lit("^{") >> attr(SUPER) >> +text_(val(L"*'`$^}")) >> '}'
| lit('^') >> attr(SUPER) >> +text_(val(L"*'`$ "))
- | lit(L"@\"") >> attr(QUOTE) >> +text_(val(L"*'`$@\"")) >> '"';
+ | lit(L"@\"") >> attr(QUOTE) >> +text_(val(L"*'`$@\"")) >> '"'
+ | lit(L"@_") >> attr(SUB) >> +text_(val(L"*'`$@_")) >> '_';
ptext_ = +(echar_ | rchar_(_r1));
echar_ = lit('\\') >> char_;