summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer/c_parser/parser/_common.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/c-analyzer/c_parser/parser/_common.py')
-rw-r--r--Tools/c-analyzer/c_parser/parser/_common.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Tools/c-analyzer/c_parser/parser/_common.py b/Tools/c-analyzer/c_parser/parser/_common.py
index 40c3603..d468d54 100644
--- a/Tools/c-analyzer/c_parser/parser/_common.py
+++ b/Tools/c-analyzer/c_parser/parser/_common.py
@@ -9,7 +9,11 @@ from ._regexes import (
def log_match(group, m):
from . import _logger
- _logger.debug(f'matched <{group}> ({m.group(0)})')
+ text = m.group(0)
+ if text.startswith(('(', ')')) or text.endswith(('(', ')')):
+ _logger.debug(f'matched <{group}> ({text!r})')
+ else:
+ _logger.debug(f'matched <{group}> ({text})')
#############################