1 " Vim syntax file for browsing debian package.
2 " copyright (C) 2007, arno renevier <arenevier@fdn.fr>
3 " Distributed under the GNU General Public License (version 2 or above)
4 " Last Change: 2007 December 07
6 " Latest version of that file can be found at
7 " http://www.fdn.fr/~arenevier/vim/syntax/deb.vim
8 " It should also be available at
9 " http://www.vim.org/scripts/script.php?script_id=1970
11 if exists("b:current_syntax")
15 syn match debComment '^".*'
16 syn match debInfoFilename '^\* \.\/.*'
17 syn match debDataFilename '^\.\/.*[^/]$'
18 syn match debDirname '^\..*\/$'
19 syn match debSymlink '^\.\/.* -> .*$' contains=debSymlinkTarget,debSymlinkArrow,debSymlinkName
20 syn match debSymlinkName '^\S*' contained
21 syn match debSymlinkTarget '\S*$' contained
22 syn match debSymlinkArrow '->' contained
24 hi def link debComment Comment
25 hi def link debInfoFilename Type
26 hi def link debDataFilename PreProc
27 hi def link debSymlinkName Identifier
28 hi def link debSymlinkTarget PreProc