1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00
kakoune/rc/filetype/github.kak

19 lines
586 B
Plaintext
Raw Normal View History

2021-12-20 18:23:52 +03:00
hook global BufCreate .*/CODEOWNERS %{
set-option buffer filetype codeowners
}
hook global WinSetOption filetype=codeowners %{
require-module codeowners
}
hook -group codeowners-hightlight global WinSetOption filetype=codeowners %{
add-highlighter window/codeowners ref codeowners
hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/codeowners }
}
provide-module codeowners %{
add-highlighter shared/codeowners regions
add-highlighter shared/codeowners/comments region ^# $ group
add-highlighter shared/codeowners/comments/ fill comment
}