annotate runtime/syntax/viminfo.vim @ 8693:118a0378ccd3

Added tag v7.4.1635 for changeset 683b3702970adff4c13d818c78feaab34c8cd2a8
author Christian Brabandt <cb@256bit.org>
date Mon, 21 Mar 2016 23:30:04 +0100
parents b7811ab264bf
children 64035abb986b
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>
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
4 " Last Change: 2012 Feb 03
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
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
11 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
12 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
13
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " The lines that are NOT recognized
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match viminfoError "^[^\t].*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " The one-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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " The two-character one-liners that are recognized
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match viminfoStatement "^[-'>"]."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match viminfoStatement +^"".+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match viminfoStatement "^\~[/&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match viminfoStatement "^\~[hH]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match viminfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match viminfoOption "^\*.*=" contains=viminfoOptionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match viminfoOptionName "\*\a*"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match viminfoComment "^#.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Define the default highlighting.
344
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
34 " Only used when an item doesn't have highlighting yet
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
35 hi def link viminfoComment Comment
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
36 hi def link viminfoError Error
7033303ea0c0 updated for version 7.0089
vimboss
parents: 7
diff changeset
37 hi def link viminfoStatement Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 let b:current_syntax = "viminfo"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
41 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
42 unlet s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 344
diff changeset
43
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " vim: ts=8 sw=2