From 6a630ae3e64b23f63073d31ba18587002da4619b Mon Sep 17 00:00:00 2001 From: Cormac Stephenson Date: Sun, 27 Feb 2022 11:42:24 +0000 Subject: [PATCH] c-family: highlight 0X style int literals --- rc/filetype/c-family.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/c-family.kak b/rc/filetype/c-family.kak index c79f933e..00f1a3d9 100644 --- a/rc/filetype/c-family.kak +++ b/rc/filetype/c-family.kak @@ -217,7 +217,7 @@ evaluate-commands %sh{ } # c specific -add-highlighter shared/c/code/numbers regex %{\b-?(0x[0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI]|([eE][-+]?\d+))?|'((\\.)?|[^'\\])'} 0:value +add-highlighter shared/c/code/numbers regex %{\b-?(0[xX][0-9a-fA-F]+|\d+)([uU][lL]{0,2}|[lL]{1,2}[uU]?|[fFdDiI]|([eE][-+]?\d+))?|'((\\.)?|[^'\\])'} 0:value evaluate-commands %sh{ # Grammar keywords='asm break case continue default do else for goto if return