summaryrefslogtreecommitdiff
path: root/mnv/runtime/syntax/codeowners.mnv
diff options
context:
space:
mode:
Diffstat (limited to 'mnv/runtime/syntax/codeowners.mnv')
-rw-r--r--mnv/runtime/syntax/codeowners.mnv23
1 files changed, 23 insertions, 0 deletions
diff --git a/mnv/runtime/syntax/codeowners.mnv b/mnv/runtime/syntax/codeowners.mnv
new file mode 100644
index 0000000000..e995d28693
--- /dev/null
+++ b/mnv/runtime/syntax/codeowners.mnv
@@ -0,0 +1,23 @@
+" MNV 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'