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