compose/parser: one more skip_to_eol()
authorRan Benita <ran234@gmail.com>
Sun, 12 Oct 2014 21:16:59 +0000 (00:16 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 13 Oct 2014 15:54:52 +0000 (18:54 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/compose/parser.c

index 51ad4ed..42c9d2a 100644 (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;