annotate runtime/syntax/sm.vim @ 594:35cef95a6b76 v7.0168

updated for version 7.0168
author vimboss
date Mon, 12 Dec 2005 22:05:50 +0000
parents a1059cda45f2
children b3bc99b909c3
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: sendmail
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
507
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
4 " Last Change: Sep 06, 2005
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
5 " Version: 4
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match smComment "^#.*$" contains=@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Definitions, Classes, Files, Options, Precedence, Trusted Users, Mailers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match smDefine "^[CDF]."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match smDefine "^O[AaBcdDeFfgHiLmNoQqrSsTtuvxXyYzZ]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match smDefine "^O\s"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match smDefine "^M[a-zA-Z0-9]\+,"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match smDefine "^T" nextgroup=smTrusted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match smDefine "^P" nextgroup=smMesg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match smTrusted "\S\+$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match smMesg "\S*="he=e-1 contained nextgroup=smPrecedence
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match smPrecedence "-\=[0-9]\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Header Format H?list-of-mailer-flags?name: format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match smHeaderSep contained "[?:]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match smHeader "^H\(?[a-zA-Z]\+?\)\=[-a-zA-Z_]\+:" contains=smHeaderSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match smVar "\$[a-z\.\|]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Rulesets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match smRuleset "^S\d*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 " Rewriting Rules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match smRewrite "^R" skipwhite nextgroup=smRewriteLhsToken,smRewriteLhsUser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match smRewriteLhsUser contained "[^\t$]\+" skipwhite nextgroup=smRewriteLhsToken,smRewriteLhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match smRewriteLhsToken contained "\(\$[-*+]\|\$[-=][A-Za-z]\|\$Y\)\+" skipwhite nextgroup=smRewriteLhsUser,smRewriteLhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match smRewriteLhsSep contained "\t\+" skipwhite nextgroup=smRewriteRhsToken,smRewriteRhsUser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match smRewriteRhsUser contained "[^\t$]\+" skipwhite nextgroup=smRewriteRhsToken,smRewriteRhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match smRewriteRhsToken contained "\(\$\d\|\$>\d\|\$#\|\$@\|\$:[-_a-zA-Z]\+\|\$[[\]]\|\$@\|\$:\|\$[A-Za-z]\)\+" skipwhite nextgroup=smRewriteRhsUser,smRewriteRhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match smRewriteRhsSep contained "\t\+" skipwhite nextgroup=smRewriteComment,smRewriteRhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match smRewriteRhsSep contained "$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match smRewriteComment contained "[^\t$]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " Clauses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match smClauseError "\$\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match smElse contained "\$|"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match smClauseCont contained "^\t"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn region smClause matchgroup=Delimiter start="\$?." matchgroup=Delimiter end="\$\." contains=smElse,smClause,smVar,smClauseCont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " 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
65 if version >= 508 || !exists("did_smil_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 let did_smil_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink smClause Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink smClauseError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink smComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink smDefine Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink smElse Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink smHeader Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink smHeaderSep String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink smMesg Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink smPrecedence Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink smRewrite Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink smRewriteComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink smRewriteLhsToken String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink smRewriteLhsUser Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink smRewriteRhsToken String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink smRuleset Preproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink smTrusted Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink smVar String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 let b:current_syntax = "sm"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " vim: ts=18