summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Orst <andreyorst@gmail.com>2019-03-13 17:01:17 +0300
committerGitHub <noreply@github.com>2019-03-13 17:01:17 +0300
commite5558aee637e673d7af3a0c3221ca02b665e163b (patch)
treeba7a859710f4b8aa94625e1a5572b57e365f5a52
parent47be98f1fc5aa3e2bdc1f2ccfa3a8b9f8c4ffc51 (diff)
highlight floating point numbers with exponent
Correct highlihgting for `0.38e-18` like numbers
-rw-r--r--rc/core/c-family.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak
index 1aee07a9..27b99014 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