Mercurial > vim
annotate runtime/syntax/viminfo.vim @ 10640:27be410d6d29 v8.0.0210
patch 8.0.0210: no support for bracketed paste
commit https://github.com/vim/vim/commit/ec2da36ca48b40c0654b32a8d2c9f52e796daa5e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 21 20:04:22 2017 +0100
patch 8.0.0210: no support for bracketed paste
Problem: Vim does not support bracketed paste, as implemented by xterm and
other terminals.
Solution: Add t_BE, t_BD, t_PS and t_PE.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 21 Jan 2017 20:15:04 +0100 |
parents | 64035abb986b |
children | 4027cefc2aab |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: Vim .viminfo file | |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | |
9286
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
4 " Last Change: 2016 Jun 05 |
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 | |
3312 | 11 let s:cpo_save = &cpo |
12 set cpo&vim | |
13 | |
7 | 14 " The lines that are NOT recognized |
15 syn match viminfoError "^[^\t].*" | |
16 | |
17 " The one-character one-liners that are recognized | |
18 syn match viminfoStatement "^[/&$@:?=%!<]" | |
19 | |
20 " The two-character one-liners that are recognized | |
21 syn match viminfoStatement "^[-'>"]." | |
22 syn match viminfoStatement +^"".+ | |
23 syn match viminfoStatement "^\~[/&]" | |
24 syn match viminfoStatement "^\~[hH]" | |
25 syn match viminfoStatement "^\~[mM][sS][lL][eE]\d\+\~\=[/&]" | |
26 | |
27 syn match viminfoOption "^\*.*=" contains=viminfoOptionName | |
28 syn match viminfoOptionName "\*\a*"ms=s+1 contained | |
29 | |
30 " Comments | |
31 syn match viminfoComment "^#.*" | |
32 | |
9286
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
33 " New style lines. TODO: highlight numbers and strings. |
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
34 syn match viminfoNew "^|.*" |
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
35 |
7 | 36 " Define the default highlighting. |
344 | 37 " Only used when an item doesn't have highlighting yet |
38 hi def link viminfoComment Comment | |
39 hi def link viminfoError Error | |
40 hi def link viminfoStatement Statement | |
9286
64035abb986b
commit https://github.com/vim/vim/commit/c95a302a4c42ec8230473cd4a5e0064d0a143aa8
Christian Brabandt <cb@256bit.org>
parents:
3312
diff
changeset
|
41 hi def link viminfoNew String |
7 | 42 |
43 let b:current_syntax = "viminfo" | |
44 | |
3312 | 45 let &cpo = s:cpo_save |
46 unlet s:cpo_save | |
47 | |
7 | 48 " vim: ts=8 sw=2 |