From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Tue, 16 Aug 2005 16:40:27 +0000 Subject: vim syntax file for udev rules Message-Id: <20050816164027.GA19991@wonderland.linux.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org I wrote this. There is a lot of room for improvement, but I have no time to work on it anymore or to clean it up enough to submit it upstream. If anybody is interested, feel free to adopt it. " Vim syntax file " Language: udev rules files " Maintainer: Marco d'Itri " Last Change: 2005 August 16 if exists("b:current_syntax") finish endif let b:current_syntax = "udev" syn keyword Ucondition ACTION BUS DRIVER ENV ID KERNEL RESULT SUBSYSTEM SYSFS 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 -- ciao, Marco ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel