2004-06-20 12:51:53 +00:00
|
|
|
" Language : Netrw Remote-Directory Listing Syntax
|
|
|
|
" Maintainer : Charles E. Campbell, Jr.
|
2004-07-10 09:47:34 +00:00
|
|
|
" Last change: Jul 06, 2004
|
2004-06-30 16:16:41 +00:00
|
|
|
" Version : 2
|
2004-06-20 12:51:53 +00:00
|
|
|
|
|
|
|
" Syntax Clearing: {{{1
|
|
|
|
if version < 600
|
|
|
|
syntax clear
|
|
|
|
elseif exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Directory List Syntax Highlighting: {{{1
|
2004-07-10 09:47:34 +00:00
|
|
|
syn match netrwDir "^.*/\%(\t\|$\)" contains=netrwClassify
|
|
|
|
syn match netrwClassify "[*=|@/]\%(\t\|$\)"
|
|
|
|
syn match netrwSymLink "^.*@\%(\t\|$\)" contains=netrwClassify
|
|
|
|
syn match netrwComment '".*\%(\t\|$\)' contains=netrwHide,netrwSortBy,netrwSortSeq
|
2004-07-02 15:38:35 +00:00
|
|
|
syn match netrwHide '^"\s*Hiding:' skipwhite nextgroup=netrwHidePat
|
2004-07-10 09:47:34 +00:00
|
|
|
syn match netrwSlash contained "/"
|
|
|
|
syn match netrwHidePat contained "[^,]\+" skipwhite nextgroup=netrwHideSep
|
|
|
|
syn match netrwHideSep contained transparent "," skipwhite nextgroup=netrwHidePat
|
|
|
|
syn match netrwSortBy contained transparent "Sorted by" skipwhite nextgroup=netrwList
|
|
|
|
syn match netrwSortSeq contained transparent "Sort sequence:" skipwhite nextgroup=netrwList
|
|
|
|
syn match netrwList contained ".*$" contains=netrwComma
|
|
|
|
syn match netrwComma contained ","
|
2004-06-20 12:51:53 +00:00
|
|
|
|
|
|
|
" Highlighting Links: {{{1
|
|
|
|
if !exists("did_drchip_dbg_syntax")
|
|
|
|
let did_drchip_netrwlist_syntax= 1
|
2004-06-30 16:16:41 +00:00
|
|
|
hi link netrwClassify Function
|
2004-06-20 12:51:53 +00:00
|
|
|
hi link netrwComment Comment
|
|
|
|
hi link netrwDir Directory
|
2004-07-02 15:38:35 +00:00
|
|
|
hi link netrwHidePat String
|
|
|
|
hi link netrwList String
|
2004-06-30 16:16:41 +00:00
|
|
|
hi link netrwSymLink Special
|
2004-07-02 15:38:35 +00:00
|
|
|
|
|
|
|
hi link netrwComma netrwComment
|
|
|
|
hi link netrwHide netrwComment
|
2004-06-20 12:51:53 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Current Syntax: {{{1
|
|
|
|
let b:current_syntax = "netrwlist"
|
|
|
|
" vim: ts=8 fdm=marker
|