robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
cbf54ec2a5
master
1" Vim syntax file 2" Language: Vim .viminfo file 3" Maintainer: The Vim Project <https://github.com/vim/vim> 4" Last Change: 2023 Aug 10 5" Former Maintainer: Bram Moolenaar <Bram@vim.org> 6 7" Quit when a (custom) syntax file was already loaded 8if exists ( "b:current_syntax" ) 9finish 10endif 11 12let s: cpo_save = & cpo 13set cpo & vim 14 15" The lines that are NOT recognized 16syn match viminfoError "^ [ ^\t ] . * " 17 18" The one-character one-liners that are recognized 19syn match viminfoStatement "^ [ /&$@:?=%!< ] " 20 21" The two-character one-liners that are recognized 22syn match viminfoStatement "^ [ -'>" ] . " 23syn match viminfoStatement +^"". + 24syn match viminfoStatement "^\~ [ /& ] " 25syn match viminfoStatement "^\~ [ hH ] " 26syn match viminfoStatement "^\~ [ mM ][ sS ][ lL ][ eE ] \d\+\~\= [ /& ] " 27 28syn match viminfoOption "^\*. * = "contains = viminfoOptionName 29syn match viminfoOptionName "\*\a * "ms= s+1contained 30 31" Comments 32syn match viminfoComment "^#. * " 33 34" New style lines. TODO: highlight numbers and strings. 35syn match viminfoNew "^|. * " 36 37" Define the default highlighting. 38" Only used when an item doesn't have highlighting yet 39hi def link viminfoComment Comment 40hi def link viminfoError Error 41hi def link viminfoStatement Statement 42hi def link viminfoNew String 43 44let b: current_syntax = "viminfo" 45 46let & cpo = s: cpo_save 47unlet s: cpo_save 48 49" vim: ts=8 sw=2