annotate runtime/syntax/procmail.vim @ 6602:c77ef1bf9623 v7.4.627

updated for version 7.4.627 Problem: The last screen cell is not updated. Solution: Respect the "tn" termcap feature. (Hayaki Saito)
author Bram Moolenaar <bram@vim.org>
date Tue, 10 Feb 2015 19:20:37 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Procmail definition file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Melchior FRANZ <mfranz@aon.at>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2003 Aug 14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Author: Sonia Heimann
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn match procmailComment "#.*$" contains=procmailTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn keyword procmailTodo contained Todo TBD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn region procmailString start=+"+ skip=+\\"+ end=+"+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn region procmailString start=+'+ skip=+\\'+ end=+'+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn region procmailVarDeclRegion start="^\s*[a-zA-Z0-9_]\+\s*="hs=e-1 skip=+\\$+ end=+$+ contains=procmailVar,procmailVarDecl,procmailString
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match procmailVarDecl contained "^\s*[a-zA-Z0-9_]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match procmailVar "$[a-zA-Z0-9_]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match procmailCondition contained "^\s*\*.*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match procmailActionFolder contained "^\s*[-_a-zA-Z0-9/]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match procmailActionVariable contained "^\s*$[a-zA-Z_]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region procmailActionForward start=+^\s*!+ skip=+\\$+ end=+$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region procmailActionPipe start=+^\s*|+ skip=+\\$+ end=+$+
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn region procmailActionNested start=+^\s*{+ end=+^\s*}+ contains=procmailRecipe,procmailComment,procmailVarDeclRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region procmailRecipe start=+^\s*:.*$+ end=+^\s*\($\|}\)+me=e-1 contains=procmailComment,procmailCondition,procmailActionFolder,procmailActionVariable,procmailActionForward,procmailActionPipe,procmailActionNested,procmailVarDeclRegion
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 if version >= 508 || !exists("did_procmail_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 let did_procmail_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink procmailComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink procmailTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink procmailRecipe Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 "HiLink procmailCondition Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 HiLink procmailActionFolder procmailAction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 HiLink procmailActionVariable procmailAction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 HiLink procmailActionForward procmailAction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 HiLink procmailActionPipe procmailAction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink procmailAction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink procmailVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink procmailVarDecl Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink procmailString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 let b:current_syntax = "procmail"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " vim: ts=8