diff options
-rw-r--r-- | parser.l | 9 | ||||
-rw-r--r-- | txr.1 | 10 |
2 files changed, 17 insertions, 2 deletions
@@ -108,8 +108,13 @@ void yyerrorf(scanner_t *scanner, val fmt, ...) if (opt_loglevel >= 1) { va_list vl; va_start (vl, fmt); - format(std_error, lit("~a: (~a:~a): "), prog_string, - parser->name, num(parser->lineno), nao); + if (opt_compat && opt_compat <= 114) + format(std_error, lit("~a: (~a:~a): "), prog_string, + parser->name, num(parser->lineno), nao); + else + format(std_error, lit("~a:~a: "), + parser->name, num(parser->lineno), nao); + vformat(std_error, fmt, vl); put_char(chr('\n'), std_error); va_end (vl); @@ -33265,6 +33265,16 @@ is given an argument which is equal or lower. For instance .code -C 103 selects the behaviors described below for version 105, but not those for 102. +.IP 114 +\*(TX until version 114 reported parse errors in this format: + +.cblk + ./txr: (file.txr:123): syntax error +.cble + +The new format omits the program name prefix and parentheses. + + .IP 113 Version 113 is the last version in which the .codn stat , |