From cb074793a0af099754a7fba9c2a5755bd2130d31 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 14 Nov 2016 13:14:21 +0000 Subject: [PATCH] Highlight numbers as values in json --- rc/base/json.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/base/json.kak b/rc/base/json.kak index 6cefdf34..3369d9f9 100644 --- a/rc/base/json.kak +++ b/rc/base/json.kak @@ -20,7 +20,7 @@ addhl -group / regions -default code json \ addhl -group /json/string fill string -addhl -group /json/code regex \b(true|false|null)\b 0:value +addhl -group /json/code regex \b(true|false|null|\d+(?:\.\d+)?(?:[eE][+-]?\d*)?)\b 0:value # Commands # ‾‾‾‾‾‾‾‾