From a6c8dcf305a6ab8858e0a384b70bbb84a03d8cbc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 19 Jun 2018 19:40:33 +1000 Subject: [PATCH] Add a cmake.kak file for highlighting cmake files --- rc/extra/cmake.kak | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 rc/extra/cmake.kak diff --git a/rc/extra/cmake.kak b/rc/extra/cmake.kak new file mode 100644 index 000000000..0dd3835c2 --- /dev/null +++ b/rc/extra/cmake.kak @@ -0,0 +1,22 @@ +hook global BufCreate .+\.cmake|.*/CMakeLists.txt %{ + set-option buffer filetype cmake +} + +add-highlighter shared/ regions -match-capture -default code cmake \ + comment '#' '$' '' \ + argument '\w+\h*\(\K' '(?=\))' '\(' \ + +add-highlighter shared/cmake/argument regions -match-capture -default args argument \ + quoted '"' '(?