36
|
1 " Vim syntax file
|
375
|
2 " Language: Sieve filtering language input file
|
839
|
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
|
1698
|
4 " Latest Revision: 2007-10-25
|
36
|
5
|
375
|
6 if exists("b:current_syntax")
|
36
|
7 finish
|
|
8 endif
|
|
9
|
375
|
10 let s:cpo_save = &cpo
|
|
11 set cpo&vim
|
|
12
|
|
13 syn keyword sieveTodo contained TODO FIXME XXX NOTE
|
36
|
14
|
389
|
15 syn region sieveComment start='/\*' end='\*/' contains=sieveTodo,@Spell
|
|
16 syn region sieveComment display oneline start='#' end='$'
|
375
|
17 \ contains=sieveTodo,@Spell
|
36
|
18
|
|
19 syn case ignore
|
|
20
|
375
|
21 syn match sieveTag display ':\h\w*'
|
36
|
22
|
375
|
23 syn match sieveNumber display '\<\d\+[KMG]\=\>'
|
36
|
24
|
375
|
25 syn match sieveSpecial display '\\["\\]'
|
36
|
26
|
389
|
27 syn region sieveString start=+"+ skip=+\\\\\|\\"+ end=+"+
|
|
28 \ contains=sieveSpecial
|
|
29 syn region sieveString start='text:' end='\n.\n'
|
36
|
30
|
|
31 syn keyword sieveConditional if elsif else
|
375
|
32 syn keyword sieveTest address allof anyof envelope exists false header
|
|
33 \ not size true
|
36
|
34 syn keyword sievePreProc require stop
|
375
|
35 syn keyword sieveAction reject fileinto redirect keep discard
|
1698
|
36 syn keyword sieveKeyword vacation
|
36
|
37
|
375
|
38 syn case match
|
36
|
39
|
375
|
40 hi def link sieveTodo Todo
|
|
41 hi def link sieveComment Comment
|
|
42 hi def link sieveTag Type
|
|
43 hi def link sieveNumber Number
|
|
44 hi def link sieveSpecial Special
|
|
45 hi def link sieveString String
|
|
46 hi def link sieveConditional Conditional
|
|
47 hi def link sieveTest Keyword
|
|
48 hi def link sievePreProc PreProc
|
1698
|
49 hi def link sieveAction Function
|
375
|
50 hi def link sieveKeyword Keyword
|
36
|
51
|
|
52 let b:current_syntax = "sieve"
|
|
53
|
375
|
54 let &cpo = s:cpo_save
|
|
55 unlet s:cpo_save
|