Add highlighting for CODEOWNERS
This commit is contained in:
parent
9acd4e62dc
commit
7eec09d67d
18
rc/filetype/github.kak
Normal file
18
rc/filetype/github.kak
Normal file
|
@ -0,0 +1,18 @@
|
|||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user