summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lex.c b/lex.c
index 0cdd1c4..6923b20 100644
--- a/lex.c
+++ b/lex.c
@@ -169,6 +169,11 @@ struct parser *parse(struct parser *parser, const char *file)
}
line++;
+ /* skip blank lines */
+ if (buf[0] == '\n') {
+ continue;
+ }
+
if (section == DEFINITIONS) {
if (!strcmp("%%\n", buf)) {
section = RULES;