annotate runtime/syntax/netrc.vim @ 19701:9412cc889072 v8.2.0407

patch 8.2.0407: no early check if :find and :sfind have an argument Commit: https://github.com/vim/vim/commit/2d10cd478047df8ba144d4b0fcc46480993af57f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 19 14:37:30 2020 +0100 patch 8.2.0407: no early check if :find and :sfind have an argument Problem: No early check if :find and :sfind have an argument. Solution: Add EX_NEEDARG.
author Bram Moolenaar <Bram@vim.org>
date Thu, 19 Mar 2020 14:45:04 +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