compose/parser: one more skip_to_eol() Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/compose/parser.c b/src/compose/parser.c
index 51ad4ed..42c9d2a 100644
--- a/src/compose/parser.c
+++ b/src/compose/parser.c
@@ -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;