From 45d0046d8ff22e6a239f2c8c2e12ab5e60425e33 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Wed, 10 Dec 2014 08:20:40 +0900 Subject: 33940: handle backslash-meta correctly in lexer --- Src/lex.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'Src/lex.c') diff --git a/Src/lex.c b/Src/lex.c index 1a854f52b..b2a05448c 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -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; -- cgit 1.4.1