annotate runtime/syntax/sieve.vim @ 10528:3ea703795a4f v8.0.0154

commit https://github.com/vim/vim/commit/31f19ce0a052f7c76d44a9a190e468c79cf5d56d Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 8 14:14:43 2017 +0100 patch 8.0.0154: system() test fails on OS/X Problem: system() test fails on OS/X. Solution: Deal with leading spaces.
author Christian Brabandt <cb@256bit.org>
date Sun, 08 Jan 2017 14:15:04 +0100
parents f4f8014d516e
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
1 " Vim syntax file
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
2 " Language: Sieve filtering language input file
839
1f3b1021f002 updated for version 7.0e05
vimboss
parents: 389
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
4 " Latest Revision: 2007-10-25
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
5
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
6 if exists("b:current_syntax")
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
7 finish
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
8 endif
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
9
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
13 syn keyword sieveTodo contained TODO FIXME XXX NOTE
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
14
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
15 syn region sieveComment start='/\*' end='\*/' contains=sieveTodo,@Spell
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
16 syn region sieveComment display oneline start='#' end='$'
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
17 \ contains=sieveTodo,@Spell
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
18
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
19 syn case ignore
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
20
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
21 syn match sieveTag display ':\h\w*'
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
22
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
23 syn match sieveNumber display '\<\d\+[KMG]\=\>'
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
24
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
25 syn match sieveSpecial display '\\["\\]'
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
26
389
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
27 syn region sieveString start=+"+ skip=+\\\\\|\\"+ end=+"+
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
28 \ contains=sieveSpecial
4fe8e1a7758e updated for version 7.0102
vimboss
parents: 375
diff changeset
29 syn region sieveString start='text:' end='\n.\n'
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
30
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
31 syn keyword sieveConditional if elsif else
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
32 syn keyword sieveTest address allof anyof envelope exists false header
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
33 \ not size true
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
34 syn keyword sievePreProc require stop
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
35 syn keyword sieveAction reject fileinto redirect keep discard
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
36 syn keyword sieveKeyword vacation
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
37
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
38 syn case match
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
39
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
40 hi def link sieveTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
41 hi def link sieveComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
42 hi def link sieveTag Type
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
43 hi def link sieveNumber Number
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
44 hi def link sieveSpecial Special
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
45 hi def link sieveString String
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
46 hi def link sieveConditional Conditional
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
47 hi def link sieveTest Keyword
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
48 hi def link sievePreProc PreProc
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 839
diff changeset
49 hi def link sieveAction Function
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
50 hi def link sieveKeyword Keyword
36
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
51
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
52 let b:current_syntax = "sieve"
125e80798a85 updated for version 7.0021
vimboss
parents:
diff changeset
53
375
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
54 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents: 36
diff changeset
55 unlet s:cpo_save