annotate runtime/syntax/netrwlist.vim @ 33:f6033dcbaf31

updated for version 7.0020
author vimboss
date Sun, 24 Oct 2004 19:18:58 +0000
parents 8ff7fd162d3c
children d50452846776
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
1 " Language : Netrw Remote-Directory Listing Syntax
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
2 " Maintainer : Charles E. Campbell, Jr.
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
3 " Last change: Sep 08, 2004
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
4 " Version : 5
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
5 " ---------------------------------------------------------------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
6
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
7 " Syntax Clearing: {{{1
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
8 if version < 600
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
9 syntax clear
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
11 finish
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
12 endif
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
13
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
14 " ---------------------------------------------------------------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
15 " Directory List Syntax Highlighting: {{{1
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
16 syn cluster NetrwGroup contains=netrwHide,netrwSortBy,netrwSortSeq,netrwQuickHelp,netrwVersion
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
17 syn match netrwDir "^.*/\%(\t\|$\)" contains=netrwClassify
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
18 syn match netrwClassify "[*=|@/]\%(\t\|$\)"
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
19 syn match netrwSymLink "^.*@\%(\t\|$\)" contains=netrwClassify
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
20 syn match netrwComment '".*\%(\t\|$\)' contains=@NetrwGroup
24
8ff7fd162d3c updated for version 7.0016
vimboss
parents: 22
diff changeset
21 syn match netrwHide '^"\s*\(Hid\|Show\)ing:' skipwhite nextgroup=netrwHidePat
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
22 syn match netrwSlash contained "/"
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
23 syn match netrwHidePat contained "[^,]\+" skipwhite nextgroup=netrwHideSep
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
24 syn match netrwHideSep contained transparent "," skipwhite nextgroup=netrwHidePat
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
25 syn match netrwSortBy contained transparent "Sorted by" skipwhite nextgroup=netrwList
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
26 syn match netrwSortSeq contained transparent "Sort sequence:" skipwhite nextgroup=netrwList
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
27 syn match netrwList contained ".*$" contains=netrwComma
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
28 syn match netrwComma contained ","
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
29 syn region netrwQuickHelp contained matchgroup=Comment start="Quick Help:\s\+" end="$" contains=netrwHelpCmd keepend
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
30 syn match netrwHelpCmd contained "\S\ze:" skipwhite nextgroup=netrwCmdSep
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
31 syn match netrwCmdSep contained ":" nextgroup=netrwCmdNote
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
32 syn match netrwCmdNote contained ".\{-}\ze "
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
33 syn match netrwVersion contained "(netrw.*)"
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
34
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
35 " ---------------------------------------------------------------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
36 " Highlighting Links: {{{1
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
37 if !exists("did_drchip_dbg_syntax")
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
38 let did_drchip_netrwlist_syntax= 1
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
39 hi link netrwClassify Function
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
40 hi link netrwCmdSep Delimiter
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
41 hi link netrwComment Comment
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
42 hi link netrwDir Directory
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
43 hi link netrwHelpCmd Function
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
44 hi link netrwHidePat Statement
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
45 hi link netrwList Statement
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
46 hi link netrwVersion Identifier
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 9
diff changeset
47 hi link netrwSymLink Special
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
48
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
49 hi link netrwComma netrwComment
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 11
diff changeset
50 hi link netrwHide netrwComment
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
51 endif
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
52
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
53 " Current Syntax: {{{1
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
54 let b:current_syntax = "netrwlist"
22
cc049b00ee70 updated for version 7.0014
vimboss
parents: 15
diff changeset
55 " ---------------------------------------------------------------------
9
4102fb4ea781 updated for version 7.0002
vimboss
parents:
diff changeset
56 " vim: ts=8 fdm=marker