diff --git a/rc/extra/cmake.kak b/rc/extra/cmake.kak new file mode 100644 index 00000000..0dd3835c --- /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 '"' '(?