From 9bc306eb337174d36c56db929133bb0281bc24d5 Mon Sep 17 00:00:00 2001 From: cukmekerb Date: Mon, 22 Nov 2021 12:15:19 -0800 Subject: [PATCH] JS hex BigInts and hex numeric separators --- 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 63c00c23..d9515d52 100644 --- a/data/plugins/language_js.lua +++ b/data/plugins/language_js.lua @@ -12,7 +12,7 @@ syntax.add { { pattern = { '"', '"', '\\' }, type = "string" }, { pattern = { "'", "'", '\\' }, type = "string" }, { pattern = { "`", "`", '\\' }, type = "string" }, - { pattern = "0x[%da-fA-F]+", type = "number" }, + { pattern = "0x[%da-fA-F_]+n?", type = "number" }, { pattern = "-?%d+[%d%.eE_n]*", type = "number" }, { pattern = "-?%.?%d+", type = "number" }, { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },