+/*
+ * Return false if the end of the line contains anything other
+ * than spaces, or a semicolon or a comment.
+ */
+bool lex_check_eol(LEX *lf)
+{
+ char *ch = lf->line+lf->col_no;
+ while (*ch != '\0' && *ch != '#' && B_ISSPACE(*ch) && *ch != ';') {
+ ch++;
+ }
+ return *ch == '\0' || *ch == '#' || *ch == ';';
+}
+