From 8f43531b473357b8172b228f63143792400fd03c Mon Sep 17 00:00:00 2001 From: lqdev Date: Tue, 12 Mar 2024 20:05:36 +0100 Subject: [PATCH] remove _ in json numeric literals --- static/syntax/json.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/syntax/json.json b/static/syntax/json.json index 9d24f26..a091f0a 100644 --- a/static/syntax/json.json +++ b/static/syntax/json.json @@ -1,7 +1,7 @@ { "patterns": [ { "regex": "[a-zA-Z_][a-zA-Z0-9_]*", "is": "error" }, - { "regex": "[0-9_]+(\\.[0-9_]*([eE][-+]?[0-9_]+)?)?", "is": "literal" }, + { "regex": "[0-9]+(\\.[0-9]*([eE][-+]?[0-9]+)?)?", "is": "literal" }, { "regex": "\"(\\\\\"|[^\"])*\"(:)", "is": { "default": "keyword2", "captures": ["keyword2", "punct"] }