9
|
1 " Language : Netrw Remote-Directory Listing Syntax
|
|
2 " Maintainer : Charles E. Campbell, Jr.
|
15
|
3 " Last change: Jul 06, 2004
|
11
|
4 " Version : 2
|
9
|
5
|
|
6 " Syntax Clearing: {{{1
|
|
7 if version < 600
|
|
8 syntax clear
|
|
9 elseif exists("b:current_syntax")
|
|
10 finish
|
|
11 endif
|
|
12
|
|
13 " Directory List Syntax Highlighting: {{{1
|
15
|
14 syn match netrwDir "^.*/\%(\t\|$\)" contains=netrwClassify
|
|
15 syn match netrwClassify "[*=|@/]\%(\t\|$\)"
|
|
16 syn match netrwSymLink "^.*@\%(\t\|$\)" contains=netrwClassify
|
|
17 syn match netrwComment '".*\%(\t\|$\)' contains=netrwHide,netrwSortBy,netrwSortSeq
|
12
|
18 syn match netrwHide '^"\s*Hiding:' skipwhite nextgroup=netrwHidePat
|
15
|
19 syn match netrwSlash contained "/"
|
|
20 syn match netrwHidePat contained "[^,]\+" skipwhite nextgroup=netrwHideSep
|
|
21 syn match netrwHideSep contained transparent "," skipwhite nextgroup=netrwHidePat
|
|
22 syn match netrwSortBy contained transparent "Sorted by" skipwhite nextgroup=netrwList
|
|
23 syn match netrwSortSeq contained transparent "Sort sequence:" skipwhite nextgroup=netrwList
|
|
24 syn match netrwList contained ".*$" contains=netrwComma
|
|
25 syn match netrwComma contained ","
|
9
|
26
|
|
27 " Highlighting Links: {{{1
|
|
28 if !exists("did_drchip_dbg_syntax")
|
|
29 let did_drchip_netrwlist_syntax= 1
|
11
|
30 hi link netrwClassify Function
|
9
|
31 hi link netrwComment Comment
|
12
|
32 hi link netrwDir Directory
|
11
|
33 hi link netrwHidePat String
|
12
|
34 hi link netrwList String
|
11
|
35 hi link netrwSymLink Special
|
12
|
36
|
|
37 hi link netrwComma netrwComment
|
|
38 hi link netrwHide netrwComment
|
9
|
39 endif
|
|
40
|
|
41 " Current Syntax: {{{1
|
|
42 let b:current_syntax = "netrwlist"
|
|
43 " vim: ts=8 fdm=marker
|