diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2010-01-02 17:27:44 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2010-01-02 17:27:44 +0100 |
commit | 85b5baef260e770966cdc873a4e8eab05d935b64 (patch) | |
tree | ce4a1bb58100ad1a6307db08b40a94aa16797478 /.vim/ftplugin/udev.vim |
Initial commit of vim config
Diffstat (limited to '.vim/ftplugin/udev.vim')
-rw-r--r-- | .vim/ftplugin/udev.vim | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.vim/ftplugin/udev.vim b/.vim/ftplugin/udev.vim new file mode 100644 index 0000000..d9f88df --- /dev/null +++ b/.vim/ftplugin/udev.vim @@ -0,0 +1,45 @@ +" Vim syntax file +" Language: udev rules files +" Maintainer: Marco d'Itri <md@linux.it> +" Last Change: 2005 August +" +" This syntax file is unfinished. If you can, please clean it up and submit +" it for inclusion in the vim package. + +if exists("b:current_syntax") + finish +endif + +let b:current_syntax = "udev" + +syn keyword Ucondition ACTION ENV RESULT KERNEL SUBSYSTEM DRIVER ATTR +syn keyword Ucondition KERNELS SUBSYSTEMS DRIVERS ATTRS DEVPATH +syn keyword Ucondition nextgroup=Uparambr,Uoperator +syn keyword Uaction PROGRAM NAME SYMLINK OWNER GROUP MODE RUN OPTIONS +syn keyword Uaction IMPORT GOTO LABEL +syn keyword Uaction nextgroup=Uparambr,Uoperator +syn region Uparambr start=/{/ end=/}/ contains=Uparam +syn match Uparam '[A-Za-z0-9_]*' contained +syn match Ufnmatch "[?*|]" contained +syn region Ufnmatch start=/\[/ skip=/\\\]/ end=/\]/ contained +syn match Uprintf '%[beknMmps%]\|%c{[0-9]}' contained +syn match Ustringvar '\$[a-z]*' nextgroup=Uparambr +syn match Ustring '"[^"]*"' contains=Uprintf,Ufnmatch,Ustringvar +syn match Uoperator "==\|!=\|=\|+=\|:=\|," +syn match Ueol '\\$' +syn region Ucomment start=/#/ end=/$/ +syn keyword Utodo contained TODO FIXME XXX + +hi def link Ucondition Identifier +hi def link Uaction Identifier +hi def link Uparambr Delimiter +hi def link Uparam PreProc +hi def link Ufnmatch Special +hi def link Uprintf Special +hi def link Ustringvar Function +hi def link Ustring String +hi def link Uoperator Operator +hi def link Ueol Delimiter +hi def link Ucomment Comment +hi def link Utodo Todo + |