summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-11 15:11:48 -0400
committerJune McEnroe <june@causal.agency>2021-09-11 15:11:48 -0400
commitd81e7e64f2bd90fb69585a404fa1bfbdec7a22e2 (patch)
treef659bbde38fd07555afee7e2c8a33a1ecfb6f066 /bin
parentPublish "git-comment" (diff)
downloadsrc-d81e7e64f2bd90fb69585a404fa1bfbdec7a22e2.tar.gz
src-d81e7e64f2bd90fb69585a404fa1bfbdec7a22e2.zip
Also defer printing comment for lone close-parens
Diffstat (limited to '')
-rw-r--r--bin/git-comment.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/git-comment.pl b/bin/git-comment.pl
index a46f43fe..64361a60 100644
--- a/bin/git-comment.pl
+++ b/bin/git-comment.pl
@@ -74,7 +74,7 @@ while (<$pipe>) {
 		$message{$commit} = \@message;
 	} elsif (/^\t(\s*)(.*)/) {
 		my ($indent, $line) = ($1, $2);
-		unless ($printed || $line =~ /^}?;?$/) {
+		unless ($printed || $line =~ /^[})]?;?$/) {
 			$printed = 1;
 			if (
 				$group >= $minGroup &&