mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
+fix: fixing run-time problem of stack corruption
This commit is contained in:
parent
17509e8e22
commit
a9999a8646
@ -237,6 +237,7 @@ struct EscapeSequence {
|
||||
|
||||
int outerState = SCE_KOTLIN_DEFAULT;
|
||||
int digitsLeft = 0;
|
||||
bool brace = false;
|
||||
|
||||
// highlight any character as escape sequence.
|
||||
bool resetEscapeState(int state, int chNext) noexcept {
|
||||
@ -244,7 +245,8 @@ struct EscapeSequence {
|
||||
return false;
|
||||
}
|
||||
outerState = state;
|
||||
digitsLeft = (chNext == 'u') ? 5 : 1;
|
||||
brace = false;
|
||||
digitsLeft = (chNext == 'x') ? 3 : ((chNext == 'u') ? 5 : 1);
|
||||
return true;
|
||||
}
|
||||
bool atEscapeEnd(int ch) noexcept {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user