xref: /vim-8.2.3635/runtime/syntax/dirpager.vim (revision 17fb0e89)
1" Vim syntax file
2" Language:         directory pager
3" Maintainer:       Thilo Six <[email protected]>
4" Derived From:	    Nikolai Weibull's dircolors.vim
5" Latest Revision:  2011-04-09
6"
7" usage: $ ls -la | view -c "set ft=dirpager" -
8"
9
10if exists("b:current_syntax")
11  finish
12endif
13
14let s:cpo_save = &cpo
15set cpo&vim
16setlocal nowrap
17
18syn keyword  DirPagerTodo	contained FIXME TODO XXX NOTE
19
20syn region   DirPagerExe	start='^...x\|^......x\|^.........x' end='$'	contains=DirPagerTodo,@Spell
21syn region   DirPagerDir	start='^d' end='$'	contains=DirPagerTodo,@Spell
22syn region   DirPagerLink	start='^l' end='$'	contains=DirPagerTodo,@Spell
23
24hi def link  DirPagerTodo	Todo
25hi def	     DirPagerExe	ctermfg=Green	    guifg=Green
26hi def	     DirPagerDir	ctermfg=Blue	    guifg=Blue
27hi def	     DirPagerLink	ctermfg=Cyan	    guifg=Cyan
28
29let b:current_syntax = "dirpager"
30
31let &cpo = s:cpo_save
32unlet s:cpo_save
33
34