((commentpos >= 1 and
            line[commentpos-1] not in string.whitespace) or