diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index d1bf9eba..1ab0fcc9 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -178,7 +178,23 @@ add-highlighter shared/c/code regex %{\b-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[ } # c++ specific -add-highlighter shared/cpp/code regex %{\b-?(0x[0-9a-fA-F]+|\d+)[fdiu]?|'((\\.)?|[^'\\])'} 0:value + +# character literals (no multi-character literals) +add-highlighter shared/cpp/code regex %{(\b(u8|u|U|L)|\B)'((\\.)|[^'\\])'\B} 0:value + +# integer literals +add-highlighter shared/cpp/code regex %{(?i)(?