Treat BOM as whitespace.

This commit is contained in:
Tor Andersson
2014-01-02 16:42:53 +01:00
parent bc914e674b
commit ce69f95ff0

View File

@@ -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)