From d81fc84632ff5d9bdbec8914c4255c2a247052cf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 11 Jan 2014 17:36:03 +0100 Subject: [PATCH] Improve regexp context detection. --- jslex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jslex.c b/jslex.c index 6a70bec..df07c6f 100644 --- a/jslex.c +++ b/jslex.c @@ -335,6 +335,7 @@ static int isregexpcontext(int last) switch (last) { case ']': case ')': + case '}': case TK_IDENTIFIER: case TK_NUMBER: case TK_STRING: