mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-25 20:41:49 +03:00
Highlighters: tweak colorize_cplusplus
This commit is contained in:
parent
95db828e17
commit
272f2d87a1
@ -99,7 +99,7 @@ HighlighterAndId colorize_regex_factory(Window& window,
|
|||||||
|
|
||||||
void colorize_cplusplus(DisplayBuffer& display_buffer)
|
void colorize_cplusplus(DisplayBuffer& display_buffer)
|
||||||
{
|
{
|
||||||
static boost::regex values("\\<(true|false|NULL|nullptr)\\>|\\<-?\\d+[fdiu]?|'\\\\?[^']?'");
|
static boost::regex values("\\<(true|false|NULL|nullptr)\\>|\\<-?\\d+[fdiu]?|'((\\\\.)?|[^'\\\\])'");
|
||||||
colorize_regex(display_buffer, values, Color::Red);
|
colorize_regex(display_buffer, values, Color::Red);
|
||||||
|
|
||||||
static boost::regex builtin_types("\\<(void|int|char|unsigned|float|bool|size_t)\\>");
|
static boost::regex builtin_types("\\<(void|int|char|unsigned|float|bool|size_t)\\>");
|
||||||
|
Loading…
Reference in New Issue
Block a user