From e5558aee637e673d7af3a0c3221ca02b665e163b Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Wed, 13 Mar 2019 17:01:17 +0300 Subject: [PATCH] highlight floating point numbers with exponent Correct highlihgting for `0.38e-18` like numbers --- rc/core/c-family.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index 1aee07a97..27b990141 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -164,7 +164,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])?|'((\\.)?|[^'\\])'} 0:value +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 evaluate-commands %sh{ # Grammar keywords='asm break case continue default do else for goto if return