compose/parser: one more skip_to_eol()

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2014-10-13 00:16:59 +03:00
parent a3116f97d0
commit 8bba4b34ec
1 changed files with 2 additions and 3 deletions

View File

@ -266,9 +266,8 @@ skip_more_whitespace_and_comments:
return TOK_RHS_KEYSYM;
}
/* Skip line. */
while (!eof(s) && !eol(s))
next(s);
/* Discard rest of line. */
skip_to_eol(s);
scanner_err(s, "unrecognized token");
return TOK_ERROR;