From: NeilBrown Date: Tue, 6 Apr 2021 22:02:20 +0000 (+1000) Subject: parsergen: add missing {} X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=commitdiff_plain;h=4f90315edf3d038fc8f4430708c7d3551bca3651 parsergen: add missing {} These have ALWAYS been missing, yet the code mostly worked. Weird. Signed-off-by: NeilBrown --- diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index 59da0ec..4faea9e 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -393,9 +393,10 @@ here is told which was found in the `isref` argument. found += 1; t = token_next(ts); } - if (found == 0) + if (found == 0) { err = "No symbols given on precedence/TERM line"; goto abort; + } return NULL; abort: while (t.num != TK_newline && t.num != TK_eof)