annotate runtime/syntax/netrc.vim @ 13400:c415cdd49ea4 v8.0.1574

patch 8.0.1574: show cursor in wrong place when using popup menu commit https://github.com/vim/vim/commit/987723e084660290270b3c3d943eb13bd828d5da Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 6 11:43:04 2018 +0100 patch 8.0.1574: show cursor in wrong place when using popup menu Problem: Show cursor in wrong place when using popup menu. (Wei Zhang) Solution: Force updating the cursor position. Fix skipping over unused entries.
author Christian Brabandt <cb@256bit.org>
date Tue, 06 Mar 2018 11:45:05 +0100
parents 1218c5353e2b
children b2e8663e6dcc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
2 " Language: netrc(5) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2034
diff changeset
4 " Latest Revision: 2010-01-03
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
6 if exists("b:current_syntax")
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
7 finish
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
8 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
13 syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
14 syn keyword netrcKeyword account
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
15 \ login
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
16 \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
17 syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
18 syn keyword netrcKeyword default
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
19 syn keyword netrcKeyword macdef
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
20 \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
21 syn region netrcMacro contained start='.' end='^$'
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
22
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
23 syn match netrcMachine contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
24 syn match netrcMachine contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
25 syn match netrcLogin contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
26 syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
27 syn match netrcPassword contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
28 syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
29 syn match netrcMacroName contained display '\S\+'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
30 \ nextgroup=netrcMacro skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
31 syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
32 \ nextgroup=netrcMacro skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
33
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
34 syn keyword netrcSpecial contained anonymous
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
35 syn match netrcInit contained '\<init$'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
36 \ nextgroup=netrcMacro skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
37
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
38 syn sync fromstart
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
39
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
40 hi def link netrcKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
41 hi def link netrcMacro PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
42 hi def link netrcMachine Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
43 hi def link netrcLogin String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
44 hi def link netrcPassword String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
45 hi def link netrcMacroName String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
46 hi def link netrcSpecial Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
47 hi def link netrcInit Special
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
48
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
49 let b:current_syntax = "netrc"
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
50
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
51 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
52 unlet s:cpo_save