aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc-changelog/git_commit.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc-changelog/git_commit.py')
-rwxr-xr-xcontrib/gcc-changelog/git_commit.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py
index 5a9cc4c..1d0860c 100755
--- a/contrib/gcc-changelog/git_commit.py
+++ b/contrib/gcc-changelog/git_commit.py
@@ -459,6 +459,13 @@ class GitCommit:
msg = 'one space should follow asterisk'
self.errors.append(Error(msg, line))
else:
+ content = m.group('content')
+ parts = content.split(':')
+ if len(parts) > 1:
+ for needle in ('()', '[]', '<>'):
+ if ' ' + needle in parts[0]:
+ msg = f'empty group "{needle}" found'
+ self.errors.append(Error(msg, line))
last_entry.lines.append(line)
else:
if last_entry.is_empty: