replace = "\\";
else if (sub.str(4) == "mathcircumflex")
replace = "^";
+ else if (sub.str(3) == "{")
+ replace = "\\braceleft";
+ else if (sub.str(3) == "}")
+ replace = "\\braceright";
else
replace = sub.str(3);
}
// Known charaters
// No split
makeKey("backslash|textbackslash|slash", KeyInfo(KeyInfo::isChar, 0, false), isPatternString);
+ makeKey("braceleft|braceright", KeyInfo(KeyInfo::isChar, 0, false), isPatternString);
makeKey("textasciicircum|textasciitilde", KeyInfo(KeyInfo::isChar, 0, false), isPatternString);
makeKey("textasciiacute|texemdash", KeyInfo(KeyInfo::isChar, 0, false), isPatternString);
makeKey("dots|ldots", KeyInfo(KeyInfo::isChar, 0, false), isPatternString);
return "";
}
}
+
}
else {
// LYXERR(Debug::INFO, "No regex formats");
int matchend = match.capturedEnd(0);
while (mres.match_len > 0) {
QChar c = qstr.at(matchend - 1);
- if ((c == '\n') || (c == '}') || (c == '{')) {
+ if (c == '\n') {
mres.match_len--;
matchend--;
}