3 " Authors: Justus Pendleton <justus@acm.org>
4 " Last Change: Fri Sep 29 13:53:27 PDT 2000
7 " For version 5.x: Clear all syntax items
8 " For version 6.x: Quit when a syntax file was already loaded
11 elseif exists("b:current_syntax")
17 syn region dylanintrInfo matchgroup=Statement start="^" end=":" oneline
18 syn match dylanintrInterface "define interface"
19 syn match dylanintrClass "<.*>"
20 syn region dylanintrType start=+"+ skip=+\\\\\|\\"+ end=+"+
22 syn region dylanintrIncluded contained start=+"+ skip=+\\\\\|\\"+ end=+"+
23 syn match dylanintrIncluded contained "<[^>]*>"
24 syn match dylanintrInclude "^\s*#\s*include\>\s*["<]" contains=intrIncluded
26 "syn keyword intrMods pointer struct
28 " Define the default highlighting.
29 " For version 5.7 and earlier: only when not done already
30 " For version 5.8 and later: only when an item doesn't have highlighting yet
31 if version >= 508 || !exists("did_dylan_intr_syntax_inits")
33 let did_dylan_intr_syntax_inits = 1
34 command -nargs=+ HiLink hi link <args>
36 command -nargs=+ HiLink hi def link <args>
39 HiLink dylanintrInfo Special
40 HiLink dylanintrInterface Operator
41 HiLink dylanintrMods Type
42 HiLink dylanintrClass StorageClass
43 HiLink dylanintrType Type
44 HiLink dylanintrIncluded String
45 HiLink dylanintrInclude Include
50 let b:current_syntax = "dylanintr"