Commit 8bba4b34ecccdec8785540d8e659136e3194e9d9

Ran Benita 2014-10-13T00:16:59

compose/parser: one more skip_to_eol() Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;