[colorer/Colorer-library] cregexp_refactoring: Reset CRegExp parse stack depth at the start of each match. (1bb2f85)

0 views
Skip to first unread message

farg...@farmanager.com

unread,
Aug 16, 2026, 3:31:12 PM (12 hours ago) Aug 16
to farco...@googlegroups.com
Repository : https://github.com/colorer/Colorer-library
On branch : cregexp_refactoring
Link : https://github.com/colorer/Colorer-library/commit/1bb2f85831815db52e33f9dbf8edafac8f62b587

>---------------------------------------------------------------

commit 1bb2f85831815db52e33f9dbf8edafac8f62b587
Author: Aleksey Dobrunov <cta...@ctapmex.com>
Date: Sun Aug 16 22:49:13 2026 +0500

Reset CRegExp parse stack depth at the start of each match.


>---------------------------------------------------------------

1bb2f85831815db52e33f9dbf8edafac8f62b587
src/colorer/cregexp/cregexp.cpp | 1 +
1 file changed, 1 insertion(+)

diff --git a/src/colorer/cregexp/cregexp.cpp b/src/colorer/cregexp/cregexp.cpp
index fc48f3f..757e264 100644
--- a/src/colorer/cregexp/cregexp.cpp
+++ b/src/colorer/cregexp/cregexp.cpp
@@ -1464,6 +1464,7 @@ inline bool CRegExp::parseRE(int pos)
if (error != EError::EOK)
return false;

+ count_elem = 0;
int toParse = pos;

if (!positionMoves && firstCharMaskUseful) {


Reply all
Reply to author
Forward
0 new messages