view runtime/syntax/netrwlist.vim @ 18:293621502c4d v7.0010

updated for version 7.0010
author vimboss
date Sun, 18 Jul 2004 21:34:53 +0000
parents 631143ac4a01
children cc049b00ee70
line wrap: on
line source

" Language   : Netrw Remote-Directory Listing Syntax
" Maintainer : Charles E. Campbell, Jr.
" Last change: Jul 06, 2004
" Version    : 2

" Syntax Clearing: {{{1
if version < 600
 syntax clear
elseif exists("b:current_syntax")
 finish
endif

" Directory List Syntax Highlighting: {{{1
syn match netrwDir				"^.*/\%(\t\|$\)"	contains=netrwClassify
syn match netrwClassify				"[*=|@/]\%(\t\|$\)"
syn match netrwSymLink				"^.*@\%(\t\|$\)"	contains=netrwClassify
syn match netrwComment				'".*\%(\t\|$\)'		contains=netrwHide,netrwSortBy,netrwSortSeq
syn match netrwHide				'^"\s*Hiding:'		skipwhite nextgroup=netrwHidePat
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		","

" Highlighting Links: {{{1
if !exists("did_drchip_dbg_syntax")
 let did_drchip_netrwlist_syntax= 1
 hi link netrwClassify	Function
 hi link netrwComment	Comment
 hi link netrwDir	Directory
 hi link netrwHidePat	String
 hi link netrwList	String
 hi link netrwSymLink	Special

 hi link netrwComma	netrwComment
 hi link netrwHide	netrwComment
endif

" Current Syntax: {{{1
let   b:current_syntax = "netrwlist"
" vim: ts=8 fdm=marker