diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Src/lex.c | 14 |
2 files changed, 17 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2014-12-10 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> + + * 33940: Src/lex.c: handle backslash-meta correctly in lexer + 2014-12-09 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> * 33932: Src/utils.c: revise boundary check in unmeta() @@ -1326,8 +1326,20 @@ gettokstr(int c, int sub) c = hgetc(); if (!lexstop) continue; - } else + } else { add(Bnull); + if (c == STOUC(Meta)) { + c = hgetc(); +#ifdef DEBUG + if (lexstop) { + fputs("BUG: input terminated by Meta\n", stderr); + fflush(stderr); + goto brk; + } +#endif + add(Meta); + } + } if (lexstop) goto brk; break; |