diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 12:41:27 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-04-04 12:41:27 +0300 |
| commit | 4f2d36194b4f299aa7509d815c07121039ea833b (patch) | |
| tree | f3ded014bad3a4c76ff6a22b8726ebaab68c3d13 /mnv/runtime/syntax/mnvinfo.mnv | |
| parent | 5b578e70c314723a3cde5c9bfc2be0bf1dadc93b (diff) | |
| download | Project-Tick-4f2d36194b4f299aa7509d815c07121039ea833b.tar.gz Project-Tick-4f2d36194b4f299aa7509d815c07121039ea833b.zip | |
NOISSUE change uvim folder name to mnv
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
Diffstat (limited to 'mnv/runtime/syntax/mnvinfo.mnv')
| -rw-r--r-- | mnv/runtime/syntax/mnvinfo.mnv | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mnv/runtime/syntax/mnvinfo.mnv b/mnv/runtime/syntax/mnvinfo.mnv new file mode 100644 index 0000000000..0043d39a7f --- /dev/null +++ b/mnv/runtime/syntax/mnvinfo.mnv @@ -0,0 +1,49 @@ +" MNV syntax file +" Language: MNV .mnvinfo file +" Maintainer: The MNV Project <https://github.com/Project-Tick/Project-Tick> +" Last Change: 2023 Aug 10 +" Former Maintainer: Bram Moolenaar <Bram@mnv.org> + +" Quit when a (custom) syntax file was already loaded +if exists("b:current_syntax") + finish +endif + +let s:cpo_save = &cpo +set cpo&mnv + +" The lines that are NOT recognized +syn match mnvinfoError "^[^\t].*" + +" The one-character one-liners that are recognized +syn match mnvinfoStatement "^[/&$@:?=%!<]" + +" The two-character one-liners that are recognized +syn match mnvinfoStatement "^[-'>"]." +syn match mnvinfoStatement +^"".+ +syn match mnvinfoStatement "^\~[/&]" +syn match mnvinfoStatement "^\~[hH]" +syn match mnvinfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]" + +syn match mnvinfoOption "^\*.*=" contains=mnvinfoOptionName +syn match mnvinfoOptionName "\*\a*"ms=s+1 contained + +" Comments +syn match mnvinfoComment "^#.*" + +" New style lines. TODO: highlight numbers and strings. +syn match mnvinfoNew "^|.*" + +" Define the default highlighting. +" Only used when an item doesn't have highlighting yet +hi def link mnvinfoComment Comment +hi def link mnvinfoError Error +hi def link mnvinfoStatement Statement +hi def link mnvinfoNew String + +let b:current_syntax = "mnvinfo" + +let &cpo = s:cpo_save +unlet s:cpo_save + +" mnv: ts=8 sw=2 |
