You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nvim-lua-guide/scripts/sections_tags.awk

16 lines
251 B
Awk

#!/usr/bin/awk -f
{
if (lastline ~ /^=+$/) {
tag = tolower($0)
gsub(/[^A-Za-z]/, "-", tag)
print $0
printf("%80s", "*" "luaguide-" tag "*")
print ""
}
else {
print
}
}
{ lastline = $0 }