shithub: bin.rc

Download patch

ref: f6706e1759c3e16f6f710ac897b7aa1cb5e22fa4
parent: 171d78f72e972c8671e39b064e9d1072f3130560
author: kvik <kvik@a-b.xyz>
date: Sat Apr 18 19:04:41 EDT 2020

c: match single-line function declarations

--- a/bin/c
+++ b/bin/c
@@ -38,7 +38,7 @@
 	files = `{walk -f $search | $ignore | grep '\.[chsyl]$'}
 
 	sep = '	• '
-	echo 'X ,x g@^'$regex'\(@ {
+	echo 'X ,x g@^([^ 	]+[ 	]+)*'$regex'\(@ {
 		!echo -n $%:$%dot(1) $sep
 		p
 	}' | sam -d $files >[2]/dev/null