--- a/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyCheckSyntax.py Sun Apr 07 18:32:25 2024 +0200 +++ b/src/eric7/Plugins/CheckerPlugins/SyntaxChecker/pyCheckSyntax.py Sun Apr 07 19:23:30 2024 +0200 @@ -314,11 +314,19 @@ fn, line = match.group(1, 2) if lines[1].startswith("SyntaxError:"): error = re.match("SyntaxError: (.+)", lines[1]).group(1) + elif lines[1].startswith("IndentationError:"): + error = re.match("IndentationError: (.+)", lines[1]).group(1) + elif lines[1].startswith("TabError:"): + error = re.match("TabError: (.+)", lines[1]).group(1) else: code = re.match("(.+)", lines[1]).group(1) for seLine in lines[2:]: if seLine.startswith("SyntaxError:"): error = re.match("SyntaxError: (.+)", seLine).group(1) + elif seLine.startswith("IndentationError:"): + error = re.match("IndentationError: (.+)", seLine).group(1) + elif seLine.startswith("TabError:"): + error = re.match("TabError: (.+)", seLine).group(1) elif seLine.rstrip().endswith("^"): index = len(seLine.rstrip()) - 4 else: