From 748c92100567a8617941a30343605bc663bf4810 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 13 Mar 2020 10:29:47 -0400 Subject: skip blank lines --- lex.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- cgit v1.2.1