From b3f817c1ff3beba072cf9f9f1efc84360127f852 Mon Sep 17 00:00:00 2001 From: Andrey Orst Date: Wed, 19 Sep 2018 16:50:26 +0300 Subject: [PATCH] Fix highlighting of unsigned long long in C filetype Values like `0xffffffffffffffffull` were highlighted only till first `u` leaving `ll` without highlighting. This change addresses this issue. It also adds uppercase `ULL` highlighting in values. --- 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 19d9750b..96c56ac9 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -154,7 +154,7 @@ evaluate-commands %sh{ } # c specific -add-highlighter shared/c/code/numbers regex %{\b-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[^'\\])'} 0:value +add-highlighter shared/c/code/numbers regex %{\b-?(0x[0-9a-fA-F]+|\d+)([fdiuUlL]+)?|'((\\.)?|[^'\\])'} 0:value evaluate-commands %sh{ # Grammar keywords="asm break case continue default do else for goto if return