Highlight c-family include paths as identifiers

This commit is contained in:
Maxime Coste 2017-02-03 13:35:45 +00:00
parent 02b7e58481
commit 99b7d83ca3

View File

@ -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
}