annotate runtime/syntax/sieve.vim @ 20577:5f0f1f63c8df v8.2.0842

patch 8.2.0842: MS-Windows: channel tests fail Commit: https://github.com/vim/vim/commit/208534d9ae6e8dec5baff90440b58c63f0b37981 Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 30 13:07:39 2020 +0200 patch 8.2.0842: MS-Windows: channel tests fail Problem: MS-Windows: channel tests fail. Solution: Adjust #ifdefs. (closes https://github.com/vim/vim/issues/6162)
author Bram Moolenaar <Bram@vim.org>
date Sat, 30 May 2020 13:15:03 +0200
parents 1218c5353e2b
children
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
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
2 " Language: Sieve filtering language input file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 1698
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