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
commit9d3e8a88a0d06310ff0a9309a5439ab97b8f922f (patch)
tree467b882efc00c6caf80a5fce923c5df776db3eaa /bin
parentPublish "git-comment" (diff)
downloadsrc-9d3e8a88a0d06310ff0a9309a5439ab97b8f922f.tar.gz
src-9d3e8a88a0d06310ff0a9309a5439ab97b8f922f.zip
Also defer printing comment for lone close-parens
Diffstat (limited to 'bin')
-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 27a06998..71149b8d 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 &&
bf7817707e044b2f159a7f517c27&follow=1'>Match C type declarations as IdentifierTagJune McEnroe 2020-12-29Match function-like macro definitions as IdentifierTagJune McEnroe 2020-12-29Reconfigure C macro start conditionsJune McEnroe 2020-12-29Document HTML class namesJune McEnroe 2020-12-29Rename Tag class to IdentifierTagJune McEnroe 2020-12-29Change HTML class from hi to hilexJune McEnroe 2020-12-29Add hilex HTML outputJune McEnroe:02 -0400'>2021-09-13Swap-remove tags as they're foundJune McEnroe 2021-09-12Replace htagml regex with strncmpJune McEnroe 2021-09-11Also defer printing comment for lone close-parensJune McEnroe 2021-09-10Publish "git-comment"June McEnroe 2021-09-10Add git comment --pretty optionJune McEnroe 2021-09-08Defer printing comment if line is blank or closing braceJune McEnroe 2021-09-08Up default min-repeat to 30 linesJune McEnroe 2021-09-08Handle dirty lines in git-commentJune McEnroe 2021-09-08Document and install git-commentJune McEnroe 2021-09-08Add repeat and all options to git-commentJune McEnroe 2021-09-08Add group threshold to git-commentJune McEnroe