annotate runtime/syntax/viminfo.vim @ 1840:ccc9eda1cfcf v7.2.138

updated for version 7.2-138
author vimboss
date Wed, 11 Mar 2009 15:37:53 +0000
parents 7033303ea0c0
children b7811ab264bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Vim .viminfo file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
4 " Last Change: 2005 Jun 20
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
6 " Quit when a (custom) syntax file was already loaded
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
7 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 " The lines that are NOT recognized
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 syn match viminfoError "^[^\t].*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " The one-character one-liners that are recognized
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match viminfoStatement "^[/&$@:?=%!<]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " The two-character one-liners that are recognized
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match viminfoStatement "^[-'>"]."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match viminfoStatement +^"".+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match viminfoStatement "^\~[/&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match viminfoStatement "^\~[hH]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match viminfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match viminfoOption "^\*.*=" contains=viminfoOptionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match viminfoOptionName "\*\a*"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match viminfoComment "^#.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Define the default highlighting.
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
31 " Only used when an item doesn't have highlighting yet
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
32 hi def link viminfoComment Comment
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
33 hi def link viminfoError Error
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
34 hi def link viminfoStatement Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 let b:current_syntax = "viminfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " vim: ts=8 sw=2