TestBegin test.lyx -dbg key,find > findadv-combined.loga.txt 2>&1
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
# String to be checked
+KD: 100
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
KK: \\()[]{}%^#@?*.\[Return]
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
CN: Part 001
KK: \C\[F21]\C\[F20]\\@\[Return]
-CP: Escaped : '\@'
+Sleep 1
+CN: Escaped : '\@'
CR: [pP]utting selection at .*idx: 0 par: 0 pos: 10\n with len: 1
#
CN: Part 002
KK: \C\[F21]\C\[F20]\\(\[Return]
-CP: Escaped : '\('
+Sleep 1
+CN: Escaped : '\('
CP: Putting selection at .*idx: 0 par: 1 pos: 1\n with len: 1
#
CN: Part 003
KK: \C\[F21]\C\[F20]\\)\[Return]
-CP: Escaped : '\)'
+Sleep 1
+CN: Escaped : '\)'
CP: Putting selection at .*idx: 0 par: 1 pos: 2\n with len: 1
#
CN: Part 004
KK: \C\[F21]\C\[F20]\\\\\[Return]
-CP: Escaping: '\backslash\backslash'
+Sleep 1
+CN: Escaping: '\backslash\backslash'
CP: Putting selection at .*idx: 0 par: 2 pos: 0\n with len: 1
#
CN: Part 005
KK: \C\[F21]\C\[F20]%\[Return]
-CP: Escaped : '%'
+CN: Escaped : '%'
CP: Putting selection at .*idx: 0 par: 2 pos: 7\n with len: 1
#
CN: Part 006
KK: \C\[F21]\C\[F20]\\^\[Return]
-CP: Escaped : '\^'
+Sleep 1
+CN: Escaped : '\^'
CP: Putting selection at .*idx: 0 par: 2 pos: 8\n with len: 1
#
CN: Part 007
#
CN: Part 008
KK: \C\[F21]\C\[F20]\\]\[Return]
-CP: Escaped : '\]'
+Sleep 1
+CN: Escaped : '\]'
CP: Putting selection at .*idx: 0 par: 3 pos: 4\n with len: 1
#
CN: Part 009
KK: \C\[F21]\C\[F20]\\{\[Return]
-CP: Escaping: '\backslash\{'
+CN: Escaping: '\backslash\{'
CP: Putting selection at .*idx: 0 par: 3 pos: 5\n with len: 1
#
CN: Part 010
KK: \C\[F21]\C\[F20]\\}\[Return]
-CP: Escaping: '\backslash\}'
+Sleep 1
+CN: Escaping: '\backslash\}'
CP: Putting selection at .*idx: 0 par: 3 pos: 6\n with len: 1
KK: \CF
# Uncheck ignore format
KK: \At\Ai\Ah
+Sleep 1
KK: \[Escape]\C\[Home]
+Sleep 1
CP: Key (queried) [action=buffer-begin][Ctrl+Home]
#
CN: Part 101
KK: \C\[F21]\C\[F20]\\[\[Return]
-CP: Escaped : '\['
+Sleep 1
+CN: Escaped : '\['
CP: Putting selection at .*idx: 0 par: 0 pos: 3\n with len: 1
#
CN: Part 102
static bool disableLanguageOverride = false;
smatch sub, submath;
bool evaluatingRegexp = false;
+ bool evaluatingMath = false;
KeyInfo found;
bool math_end_waiting = false;
size_t math_pos = 10000;
}
}
else {
+ if (evaluatingMath) {
+ if (sub.position(size_t(0)) < math_end_pos)
+ continue;
+ evaluatingMath = false;
+ }
if (keys.find(key) == keys.end()) {
LYXERR(Debug::FIND, "Found unknown key " << sub.str(0));
continue;
found._dataStart = found._dataEnd;
found.parenthesiscount = 0;
math_end_pos = found._dataEnd;
+ evaluatingMath = true;
}
else
continue;