diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index b945037f7..0e37ebbf9 100644 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -92,7 +92,7 @@ def compilePattern(pattern, nr): def findMatchPattern(line): - res = re.search(r'Token::s?i?m?p?l?e?Match[(](([^(,]+([(][^()]*[)])?)+)\s*,\s*"([^"]+)"[)]', line) + res = re.search(r'Token::s?i?m?p?l?e?Match[(](([^(,]+([(][^()]*[)])?){1,4})\s*,\s*"([^"]+)"[)]', line) return res def convertFile(srcname, destname):