view runtime/syntax/dirpager.vim @ 3100:fc0804089b29 v7.3.321

updated for version 7.3.321 Problem: Code not following Vim style. Solution: Fix the style. (Elias Diem)
author Bram Moolenaar <bram@vim.org>
date Wed, 21 Sep 2011 19:50:05 +0200
parents 0877b8d6370e
children 8b8ef1fed009
line wrap: on
line source

" Vim syntax file
" Language:         directory pager
" Maintainer:       Thilo Six <T.Six@gmx.de>
" Derived From:	    Nikolai Weibull's dircolors.vim
" Latest Revision:  2011-04-09
"
" usage: $ ls -la | view -c "set ft=dirpager" -
"

if exists("b:current_syntax")
  finish
endif

let s:cpo_save = &cpo
set cpo&vim
setlocal nowrap

syn keyword  DirPagerTodo	contained FIXME TODO XXX NOTE

syn region   DirPagerExe	start='^...x\|^......x\|^.........x' end='$'	contains=DirPagerTodo,@Spell
syn region   DirPagerDir	start='^d' end='$'	contains=DirPagerTodo,@Spell
syn region   DirPagerLink	start='^l' end='$'	contains=DirPagerTodo,@Spell

hi def link  DirPagerTodo	Todo
hi def	     DirPagerExe	ctermfg=Green	    guifg=Green
hi def	     DirPagerDir	ctermfg=Blue	    guifg=Blue
hi def	     DirPagerLink	ctermfg=Cyan	    guifg=Cyan

let b:current_syntax = "dirpager"

let &cpo = s:cpo_save
unlet s:cpo_save