auto-indent: check for last word before last-resort scope check.