2 " Language: Vim .viminfo file
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2005 Jun 20
6 " Quit when a (custom) syntax file was already loaded
7 if exists("b:current_syntax")
11 " The lines that are NOT recognized
12 syn match viminfoError "^[^\t].*"
14 " The one-character one-liners that are recognized
15 syn match viminfoStatement "^[/&$@:?=%!<]"
17 " The two-character one-liners that are recognized
18 syn match viminfoStatement "^[-'>"]."
19 syn match viminfoStatement +^"".+
20 syn match viminfoStatement "^\~[/&]"
21 syn match viminfoStatement "^\~[hH]"
22 syn match viminfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]"
24 syn match viminfoOption "^\*.*=" contains=viminfoOptionName
25 syn match viminfoOptionName "\*\a*"ms=s+1 contained
28 syn match viminfoComment "^#.*"
30 " Define the default highlighting.
31 " Only used when an item doesn't have highlighting yet
32 hi def link viminfoComment Comment
33 hi def link viminfoError Error
34 hi def link viminfoStatement Statement
36 let b:current_syntax = "viminfo"