Zufu Liu
Zufu Liu
I think the code can be simplified: 1. "tokens=" must be placed after `for` on the same line. we can record the position after `for` keyword, then in DetectBatchVariable(), when...
DetectBatchVariable has too many parameters, and you introduced a global variable (which should be avoid). the global ValidIterators, parameter outerStyle and varQuoteChar can be putted into a structure, so finally...
Thanks for the update. I feel it's not urgently to improve/fix highlighting for `%%` (as escape char or variable), so will handle this later.
Since commit 538a8ca39459254e120da6303724bfb969a032fd, Notepad2 can loading file larger than 2 GiB (less than 4 GiB or 1/3 physical memory). Encoding conversion for file larger than 2 GiB is disabled, it...
From https://bugs.python.org/issue36311, it's suggested to use 512 MiB buffer to get better performance when using MultiByteToWideChar() for large input.
Larger than 4GiB file can be loaded easily with file mapping (mapping entire file is faster than reading entire file). https://docs.microsoft.com/en-us/windows/win32/memory/creating-a-view-within-a-file https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createfilemappinga https://docs.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-mapviewoffile
目前没有计划使用第三方正则表达式引擎(Oniguruma, Boost, re2, pcre2等)。
没有用过`\n`替换,找时间看一下。
Fixed by 7d7b4d08995ed992538cf46ba676310f86933003, reported to upstream at https://sourceforge.net/p/scintilla/bugs/2244/
See Neil's comment at https://sourceforge.net/p/scintilla/bugs/2244/#f523, this "works" by accident, and does not do what is intended to (match any character in U+4E00..U+9FFF CJK Unified Ideographs block). The proper fix is...