From 99b7d83ca33f3a42ead1c24fccbe8f34f444e019 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 3 Feb 2017 13:35:45 +0000 Subject: [PATCH] Highlight c-family include paths as identifiers --- rc/core/c-family.kak | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak index 8b559605..102eb4e6 100644 --- a/rc/core/c-family.kak +++ b/rc/core/c-family.kak @@ -133,7 +133,9 @@ def -hidden c-family-insert-on-newline %[ eval -draft %[ add-highlighter -group /FT/string fill string add-highlighter -group /FT/comment fill comment add-highlighter -group /FT/disabled fill rgb:666666 - add-highlighter -group /FT/macro fill meta' | sed -e "s/FT/${ft}/g; s/QUOTE/'/g; s/MAYBEAT/${maybe_at}/;" + add-highlighter -group /FT/macro fill meta + add-highlighter -group /FT/macro regex ^\h*#include\h+(\S*) 1:identifier + ' | sed -e "s/FT/${ft}/g; s/QUOTE/'/g; s/MAYBEAT/${maybe_at}/;" done }