From e8571577e7728126c1385e32c3a16b7607379ba7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 16 Nov 2014 05:10:33 +0100 Subject: mds-kbdc: do not mark runaway } as invalid, but rather runaway MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-kbdc/make-tree.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mds-kbdc/make-tree.c b/src/mds-kbdc/make-tree.c index e749a7f..e807df2 100644 --- a/src/mds-kbdc/make-tree.c +++ b/src/mds-kbdc/make-tree.c @@ -753,6 +753,10 @@ int parse_to_tree(const char* restrict filename, mds_kbdc_tree_t** restrict resu } else if (strchr("\"<([", *line) || strchr(line, '(')) ; /* TODO */ + else if (strchr("}", *line)) + { + NEW_ERROR(1, ERROR, "runaway ‘%c’", *line); + } else { NEW_ERROR(1, ERROR, "invalid syntax ‘%s’", line); -- cgit v1.2.3-70-g09d2