summaryrefslogtreecommitdiff
path: root/uvim/runtime/syntax/codeowners.vim
diff options
context:
space:
mode:
Diffstat (limited to 'uvim/runtime/syntax/codeowners.vim')
-rw-r--r--uvim/runtime/syntax/codeowners.vim23
1 files changed, 23 insertions, 0 deletions
diff --git a/uvim/runtime/syntax/codeowners.vim b/uvim/runtime/syntax/codeowners.vim
new file mode 100644
index 0000000000..7370220b7a
--- /dev/null
+++ b/uvim/runtime/syntax/codeowners.vim
@@ -0,0 +1,23 @@
+" Vim syntax file
+" Language: codeowners
+" Maintainer: Jon Parise <jon@indelible.org>
+" Last Change: 2025 Sep 14
+
+if exists('b:current_syntax')
+ finish
+endif
+
+" Comments
+syn match codeownersComment /#.*$/ contains=codeownersTodo,@Spell
+syn keyword codeownersTodo TODO FIXME XXX contained
+
+" Patterns
+syn match codeownersPattern /^#\@![^#]*/ contains=codeownersGlob
+syn match codeownersGlob /^\S\+/ contained nextgroup=codeownersOwner skipwhite
+syn match codeownersOwner /\S\+/ contained nextgroup=codeownersOwner skipwhite
+
+hi def link codeownersComment Comment
+hi def link codeownersOwner Identifier
+hi def link codeownersTodo Todo
+
+let b:current_syntax = 'codeowners'