From d640c321c05c8dc0f4af200a5f56f1bc37376001 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 19 Jul 2018 18:40:07 +1000 Subject: [PATCH] cmake.kak: recognize CMakeCache.txt files as ini --- rc/extra/cmake.kak | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc/extra/cmake.kak b/rc/extra/cmake.kak index d2348bec..7c43cbdc 100644 --- a/rc/extra/cmake.kak +++ b/rc/extra/cmake.kak @@ -2,6 +2,10 @@ hook global BufCreate .+\.cmake|.*/CMakeLists.txt %{ set-option buffer filetype cmake } +hook global BufCreate .*/CMakeCache.txt %{ + set-option buffer filetype ini +} + add-highlighter shared/cmake regions add-highlighter shared/cmake/code default-region group add-highlighter shared/cmake/comment region '#' '$' fill comment