7
|
1 " Vim syntax file
|
|
2 " Language: Vim .viminfo file
|
|
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
|
344
|
4 " Last Change: 2005 Jun 20
|
7
|
5
|
344
|
6 " Quit when a (custom) syntax file was already loaded
|
|
7 if exists("b:current_syntax")
|
7
|
8 finish
|
|
9 endif
|
|
10
|
|
11 " The lines that are NOT recognized
|
|
12 syn match viminfoError "^[^\t].*"
|
|
13
|
|
14 " The one-character one-liners that are recognized
|
|
15 syn match viminfoStatement "^[/&$@:?=%!<]"
|
|
16
|
|
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\+\~\=[/&]"
|
|
23
|
|
24 syn match viminfoOption "^\*.*=" contains=viminfoOptionName
|
|
25 syn match viminfoOptionName "\*\a*"ms=s+1 contained
|
|
26
|
|
27 " Comments
|
|
28 syn match viminfoComment "^#.*"
|
|
29
|
|
30 " Define the default highlighting.
|
344
|
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
|
7
|
35
|
|
36 let b:current_syntax = "viminfo"
|
|
37
|
|
38 " vim: ts=8 sw=2
|