Refactor plugin and README for documentation skills; add doc-docker and doc-funcs skills
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
!/^[[:space:]]*#/ && / #/ {
|
||||
idx = index($0, " #")
|
||||
if (idx > 0 && idx != TARGET) {
|
||||
pad = ""
|
||||
for (i = idx; i < TARGET; i++) pad = pad " "
|
||||
sub(/ #/, pad " #")
|
||||
}
|
||||
}
|
||||
{ print }
|
||||
@@ -0,0 +1,8 @@
|
||||
!/^[[:space:]]*#/ && / #/ {
|
||||
idx = index($0, " #")
|
||||
content = substr($0, 1, idx - 1)
|
||||
gsub(/ +$/, "", content)
|
||||
col = length(content) + 2
|
||||
if (col > max_col) max_col = col
|
||||
}
|
||||
END { print "max_col=" max_col }
|
||||
@@ -0,0 +1,8 @@
|
||||
!/^[[:space:]]*#/ && / #/ {
|
||||
idx = index($0, " #")
|
||||
content = substr($0, 1, idx - 1)
|
||||
gsub(/ +$/, "", content)
|
||||
comment = substr($0, idx)
|
||||
$0 = content comment
|
||||
}
|
||||
{ print }
|
||||
@@ -0,0 +1,4 @@
|
||||
!/^[[:space:]]*#/ && / #/ {
|
||||
idx = index($0, " #")
|
||||
if (idx != TARGET) print NR, "col=" idx, substr($0, 1, 80)
|
||||
}
|
||||
Reference in New Issue
Block a user