From 293ee4d421cd55f4a3c014c1c26edf02f718cc83 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 9 Dec 2004 21:34:53 +0000 Subject: updated for version 7.0021 --- runtime/syntax/sieve.vim | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 runtime/syntax/sieve.vim (limited to 'runtime/syntax/sieve.vim') diff --git a/runtime/syntax/sieve.vim b/runtime/syntax/sieve.vim new file mode 100644 index 000000000..2923f446b --- /dev/null +++ b/runtime/syntax/sieve.vim @@ -0,0 +1,70 @@ +" Vim syntax file +" Maintainer: Nikolai Weibull +" URL: http://www.pcppopper.org/ +" Latest Revision: 2004-11-11 +" arch-tag: 356fad6d-ff6b-453c-bd25-7fc63c4758bc + +if version < 600 + syntax clear +elseif exists("b:current_syntax") + finish +endif + +" Todo +syn keyword sieveTodo contained TODO FIXME XXX NOTE + +" Comments +syn region sieveComment matchgroup=sieveComment start='/\*' end='\*/' contains=sieveTodo +syn region sieveComment matchgroup=sieveComment start='#' end='$' contains=sieveTodo + +syn case ignore + +" Tags +syn match sieveTag ':\h\w*' + +" Numbers +syn match sieveNumber '\d\+[KMG]\=' + +" Specials +syn match sieveSpecial '\\["\\]' + +" Strings +syn region sieveString matchgroup=sieveString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=sieveSpecial +syn region sieveString matchgroup=sieveString start='text:' end='\n.\n' + +" Keywords +syn keyword sieveConditional if elsif else +syn keyword sieveTest address allof anyof envelope exists false header not size true +syn keyword sievePreProc require stop +syn keyword sieveAction reject fileinto redirect keep discard +syn match sieveKeyword '\<\h\w*\>' + +" Define the default highlighting. +" For version 5.7 and earlier: only when not done already +" For version 5.8 and later: only when an item doesn't have highlighting yet +if version >= 508 || !exists("did_sieve_syn_inits") + if version < 508 + let did_sieve_syn_inits = 1 + command -nargs=+ HiLink hi link + else + command -nargs=+ HiLink hi def link + endif + + HiLink sieveTodo Todo + HiLink sieveComment Comment + HiLink sieveTag Type + HiLink sieveNumber Number + HiLink sieveSpecial Special + HiLink sieveString String + HiLink sieveConditional Conditional + HiLink sieveTest Keyword + HiLink sievePreProc PreProc + HiLink sieveAction Keyword + HiLink sieveKeyword Keyword + + delcommand HiLink +endif + +let b:current_syntax = "sieve" + +" vim: set sts=2 sw=2: -- cgit v1.2.1