handle inline scripts better

This commit is contained in:
2022-10-27 11:05:01 -04:00
parent 9c5d746ec4
commit 4849640ef1
2 changed files with 9 additions and 1 deletions

View File

@ -13,7 +13,7 @@ def LogrotateHelp(msg: string = expand("<cword>"))
gawk '/^CONFIGURATION FILE DIRECTIVES/,/^SCRIPTS/' | gawk '
/^ {7}%s/,/^[a-z]/ {
if(firstLineDone) {
if(/^ {7}[^ ]/ || /^[A-Z]/)
if(/^ {0,7}[^ ]/ && !/endscript/)
exit
}
firstLineDone = 1