From ce69f95ff02a19672e65a833df19952bbaa44f00 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 2 Jan 2014 16:42:53 +0100 Subject: [PATCH] Treat BOM as whitespace. --- js-lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-lex.c b/js-lex.c index 30afa0f..4cd785d 100644 --- a/js-lex.c +++ b/js-lex.c @@ -93,7 +93,7 @@ static inline void textend(js_State *J) static inline int iswhite(int c) { - return c == 0x9 || c == 0xB || c == 0xC || c == 0x20 || c == 0xA0; + return c == 0x9 || c == 0xB || c == 0xC || c == 0x20 || c == 0xA0 || c == 0xFEFF; } static inline int isnewline(c)