fix error message

This commit is contained in:
r4 2021-12-30 18:10:08 +01:00
parent e7da8dfe38
commit 99489dfeb6

4
lex.c
View File

@ -299,7 +299,7 @@ TokList lex(const char *s) {
consume(&pos, *(s++));
c = get_esc_char(s[0]);
if (!c) {
set_err("Unrecognized escape sequence: '\\%c'", c);
set_err("Unrecognized escape sequence: '\\%c'", s[0]);
return toks;
}
}
@ -338,7 +338,7 @@ TokList lex(const char *s) {
consume(&pos, *(s++));
c = get_esc_char(s[0]);
if (!c) {
set_err("Unrecognized escape sequence: '\\%c'", c);
set_err("Unrecognized escape sequence: '\\%c'", s[0]);
free(str);
return toks;
}