From 31d41c526e09a3eafeec7a540725c8d3bd675685 Mon Sep 17 00:00:00 2001 From: Dmitry Matveyev Date: Fri, 22 May 2020 16:47:05 +0300 Subject: [PATCH] Add underscore highlighting as visual separator inside Zig integers --- rc/filetype/zig.kak | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/filetype/zig.kak b/rc/filetype/zig.kak index 602c7dab..2f0e5d55 100644 --- a/rc/filetype/zig.kak +++ b/rc/filetype/zig.kak @@ -68,10 +68,10 @@ add-highlighter shared/zig/code/ regex '\b(?:c_short|c_ushort|c_int|c_uint|c_lon add-highlighter shared/zig/code/ regex '\b(?:true|false|null|undefined)\b' 0:value # integer literals -add-highlighter shared/zig/code/ regex '\b[0-9]+\b' 0:value -add-highlighter shared/zig/code/ regex '\b0x[0-9a-fA-F]+\b' 0:value -add-highlighter shared/zig/code/ regex '\b0o[0-7]+\b' 0:value -add-highlighter shared/zig/code/ regex '\b0b[01]+\b' 0:value +add-highlighter shared/zig/code/ regex '\b[0-9](_?[0-9])*\b' 0:value +add-highlighter shared/zig/code/ regex '\b0x[0-9a-fA-F](_?[0-9a-fA-F])*\b' 0:value +add-highlighter shared/zig/code/ regex '\b0o[0-7](_?[0-7])*\b' 0:value +add-highlighter shared/zig/code/ regex '\b0b[01](_?[01])*\b' 0:value # float literals add-highlighter shared/zig/code/ regex '\b[0-9]+\.[0-9]+(?:[eE][-+]?[0-9]+)?\b' 0:value