# HG changeset patch # User mjsousa # Date 1485373839 0 # Node ID 7a4b29e25481552a776d36ed9eb901b0c0871be1 # Parent ce026aee03e00c0790948a18bd7b35805457da81 Fix error locations messed up in previous commit. diff -r ce026aee03e0 -r 7a4b29e25481 stage1_2/iec_bison.yy --- a/stage1_2/iec_bison.yy Wed Jan 25 18:29:55 2017 +0000 +++ b/stage1_2/iec_bison.yy Wed Jan 25 19:50:39 2017 +0000 @@ -5852,11 +5852,11 @@ {$$ = new transition_condition_c(NULL, $2, locloc(@$));} /* ERROR_CHECK_BEGIN */ | start_IL_body_token eol_list simple_instr_list - {$$ = NULL; print_err_msg(locl(@1), locf(@2), "':' missing before IL condition in transition declaration."); yynerrs++;} + {$$ = NULL; print_err_msg(locl(@2), locf(@3), "':' missing before IL condition in transition declaration."); yynerrs++;} | start_IL_body_token ':' eol_list error {$$ = NULL; - if (is_current_syntax_token()) {print_err_msg(locl(@2), locf(@3), "no instructions defined in IL condition of transition declaration.");} - else {print_err_msg(locf(@3), locl(@3), "invalid instructions in IL condition of transition declaration."); yyclearin;} + if (is_current_syntax_token()) {print_err_msg(locl(@3), locf(@4), "no instructions defined in IL condition of transition declaration.");} + else {print_err_msg(locf(@4), locl(@4), "invalid instructions in IL condition of transition declaration."); yyclearin;} yyerrok; } | ASSIGN ';'