annotate runtime/syntax/sm.vim @ 8800:f57949e1e9f1 v7.4.1688

commit https://github.com/vim/vim/commit/67c2c058ea34628bd575aac7ddba4cd3b244ed57 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 30 22:03:02 2016 +0200 patch 7.4.1688 Problem: MzScheme does not support partial. Solution: Add minimal partial support. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Mar 2016 22:15:10 +0200
parents dff4e29c6905
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: sendmail
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
3 " Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
6744
dff4e29c6905 More updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6484
diff changeset
4 " Last Change: Oct 23, 2014
dff4e29c6905 More updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6484
diff changeset
5 " Version: 7
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 507
diff changeset
6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SM
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
6484
ce4ecfbebded Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6479
diff changeset
8 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn match smComment "^#.*$" contains=@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Definitions, Classes, Files, Options, Precedence, Trusted Users, Mailers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match smDefine "^[CDF]."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match smDefine "^O[AaBcdDeFfgHiLmNoQqrSsTtuvxXyYzZ]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match smDefine "^O\s"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match smDefine "^M[a-zA-Z0-9]\+,"he=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match smDefine "^T" nextgroup=smTrusted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match smDefine "^P" nextgroup=smMesg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match smTrusted "\S\+$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match smMesg "\S*="he=e-1 contained nextgroup=smPrecedence
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match smPrecedence "-\=[0-9]\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Header Format H?list-of-mailer-flags?name: format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match smHeaderSep contained "[?:]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match smHeader "^H\(?[a-zA-Z]\+?\)\=[-a-zA-Z_]\+:" contains=smHeaderSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Variables
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match smVar "\$[a-z\.\|]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Rulesets
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match smRuleset "^S\d*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Rewriting Rules
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match smRewrite "^R" skipwhite nextgroup=smRewriteLhsToken,smRewriteLhsUser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match smRewriteLhsUser contained "[^\t$]\+" skipwhite nextgroup=smRewriteLhsToken,smRewriteLhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match smRewriteLhsToken contained "\(\$[-*+]\|\$[-=][A-Za-z]\|\$Y\)\+" skipwhite nextgroup=smRewriteLhsUser,smRewriteLhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match smRewriteLhsSep contained "\t\+" skipwhite nextgroup=smRewriteRhsToken,smRewriteRhsUser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match smRewriteRhsUser contained "[^\t$]\+" skipwhite nextgroup=smRewriteRhsToken,smRewriteRhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 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
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match smRewriteRhsSep contained "\t\+" skipwhite nextgroup=smRewriteComment,smRewriteRhsSep
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match smRewriteRhsSep contained "$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match smRewriteComment contained "[^\t$]*$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " Clauses
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match smClauseError "\$\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match smElse contained "\$|"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match smClauseCont contained "^\t"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn region smClause matchgroup=Delimiter start="\$?." matchgroup=Delimiter end="\$\." contains=smElse,smClause,smVar,smClauseCont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " 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
61 if version >= 508 || !exists("did_smil_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 let did_smil_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink smClause Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink smClauseError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 HiLink smComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 HiLink smDefine Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 HiLink smElse Delimiter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 HiLink smHeader Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 HiLink smHeaderSep String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 HiLink smMesg Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 HiLink smPrecedence Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 HiLink smRewrite Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 HiLink smRewriteComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 HiLink smRewriteLhsToken String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 HiLink smRewriteLhsUser Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 HiLink smRewriteRhsToken String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 HiLink smRuleset Preproc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 HiLink smTrusted Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink smVar String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 let b:current_syntax = "sm"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " vim: ts=18