diff --git a/data/plugins/language_js.lua b/data/plugins/language_js.lua index 291c1287..63c00c23 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -13,7 +13,7 @@ syntax.add { { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" }, { pattern = "0x[%da-fA-F]+", type = "number" }, - { pattern = "-?%d+[%d%.eE]*", type = "number" }, + { pattern = "-?%d+[%d%.eE_n]*", type = "number" }, { pattern = "-?%.?%d+", type = "number" }, { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, { pattern = "[%a_][%w_]*%f[(]", type = "function" },