2 " Language: Elm Filter rules
3 " Maintainer: Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
4 " Last Change: November 11, 1998
6 " For version 5.x: Clear all syntax items
7 " For version 6.x: Quit when a syntax file was already loaded
10 elseif exists("b:current_syntax")
14 syn keyword elmfiltAction delete execute executec forward forwardc leave save savecopy
15 syn match elmfiltArg "[^\\]%[&0-9]"lc=1 contained
16 syn keyword elmfiltCond lines always subject sender from to lines received
17 syn region elmfiltMatch start="/" skip="\\/" end="/"
18 syn match elmfiltNumber "\d\+"
19 syn keyword elmfiltOper and not matches
20 syn match elmfiltOper "\~"
21 syn match elmfiltOper "<=\|>=\|!=\|<\|<\|=\|(\|)"
22 syn keyword elmfiltRule if then
23 syn region elmfiltString start='"' skip='"\(\\\\\)*\\"' end='"' contains=elmfiltArg
24 syn match elmfiltComment "^#.*$"
26 " Define the default highlighting.
27 " For version 5.7 and earlier: only when not done already
28 " For version 5.8 and later: only when an item doesn't have highlighting yet
29 if version >= 508 || !exists("did_elmfilt_syntax_inits")
31 let did_elmfilt_syntax_inits = 1
32 command -nargs=+ HiLink hi link <args>
34 command -nargs=+ HiLink hi def link <args>
37 HiLink elmfiltAction Statement
38 HiLink elmfiltArg Special
39 HiLink elmfiltComment Comment
40 HiLink elmfiltCond Type
41 HiLink elmfiltMatch Special
42 HiLink elmfiltNumber Number
43 HiLink elmfiltOper Operator
44 HiLink elmfiltRule Statement
45 HiLink elmfiltString String
50 let b:current_syntax = "elmfilt"