hook global BufCreate .+\.cmake|.*/CMakeLists.txt %{ set-option buffer filetype cmake } add-highlighter shared/cmake regions add-highlighter shared/cmake/code default-region group add-highlighter shared/cmake/comment region '#' '$' '' fill comment add-highlighter shared/cmake/argument region '\w+\h*\(\K' '(?=\))' '\(' regions add-highlighter shared/cmake/code/ regex '\w+\h*(?=\()' 0:meta add-highlighter shared/cmake/argument/args default-region regex '\$\{\w+\}' 0:variable add-highlighter shared/cmake/argument/quoted region '"' '(?