diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-08-17 22:54:59 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 22:54:59 (GMT) |
| commit | 586fc02be5b3e103bfddd49654034a898a8d6dfc (patch) | |
| tree | 6602f98e30e0964c5e1dea463dd288078e507202 /Tools/c-analyzer/c_parser/parser/_common.py | |
| parent | 5aac85101b3b0285770bf5739a94cb26245b9eaf (diff) | |
| download | cpython-586fc02be5b3e103bfddd49654034a898a8d6dfc.zip cpython-586fc02be5b3e103bfddd49654034a898a8d6dfc.tar.gz cpython-586fc02be5b3e103bfddd49654034a898a8d6dfc.tar.bz2 | |
gh-90110: Update the c-analyzer Tool (gh-96058)
Diffstat (limited to 'Tools/c-analyzer/c_parser/parser/_common.py')
| -rw-r--r-- | Tools/c-analyzer/c_parser/parser/_common.py | 6 |
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})') ############################# |
