From a65ca7a2fa8292070bf6722454cf6b9ab08983f6 Mon Sep 17 00:00:00 2001 From: cukmekerb Date: Mon, 15 Nov 2021 09:20:34 -0800 Subject: [PATCH] add BigInt literal and numeric separators to js syntax highlighter --- data/plugins/language_js.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" },