annotate runtime/syntax/netrc.vim @ 34205:b629e912b0fb v9.1.0051

patch 9.1.0051: MS-Windows: Key event test fail Commit: https://github.com/vim/vim/commit/f6ebaa7ae64edbe2e56d65c2a3f2494301d11acb Author: Christian Brabandt <cb@256bit.org> Date: Thu Jan 25 20:44:49 2024 +0100 patch 9.1.0051: MS-Windows: Key event test fail Problem: MS-Windows: Key event test fail (after 9.1.0050) Solution: Catch Interrupt and return Ctrl-C Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Thu, 25 Jan 2024 21:00:04 +0100
parents b2e8663e6dcc
children
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
32294
b2e8663e6dcc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
5 " Last Change: 2023 Feb 27 by Keith Smiley
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
6
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
7 if exists("b:current_syntax")
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
8 finish
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
9 endif
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
10
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
11 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
12 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
13
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
14 syn keyword netrcKeyword machine nextgroup=netrcMachine skipwhite skipnl
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
15 syn keyword netrcKeyword account
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
16 \ login
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
17 \ nextgroup=netrcLogin,netrcSpecial skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
18 syn keyword netrcKeyword password nextgroup=netrcPassword skipwhite skipnl
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
19 syn keyword netrcKeyword default
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
20 syn keyword netrcKeyword macdef
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
21 \ nextgroup=netrcInit,netrcMacroName skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
22 syn region netrcMacro contained start='.' end='^$'
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
23
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
24 syn match netrcMachine contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
25 syn match netrcMachine contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
26 syn match netrcLogin contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
27 syn match netrcLogin contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
28 syn match netrcPassword contained display '\S\+'
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
29 syn match netrcPassword contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
30 syn match netrcMacroName contained display '\S\+'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
31 \ nextgroup=netrcMacro skipwhite skipnl
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
32 syn match netrcMacroName contained display '"[^\\"]*\(\\.[^\\"]*\)*"'
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
33 \ nextgroup=netrcMacro skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
34
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
35 syn keyword netrcSpecial contained anonymous
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
36 syn match netrcInit contained '\<init$'
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 839
diff changeset
37 \ nextgroup=netrcMacro skipwhite skipnl
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
38
32294
b2e8663e6dcc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
39 syn match netrcComment '#.*$'
b2e8663e6dcc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
40
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
41 syn sync fromstart
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
42
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
43 hi def link netrcKeyword Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
44 hi def link netrcMacro PreProc
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
45 hi def link netrcMachine Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
46 hi def link netrcLogin String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
47 hi def link netrcPassword String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
48 hi def link netrcMacroName String
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
49 hi def link netrcSpecial Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
50 hi def link netrcInit Special
32294
b2e8663e6dcc Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 11062
diff changeset
51 hi def link netrcComment Comment
39
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
52
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
53 let b:current_syntax = "netrc"
410fa1a31baf updated for version 7.0023
vimboss
parents:
diff changeset
54
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
55 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 39
diff changeset
56 unlet s:cpo_save