3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
4 " Last Change: Sep 11, 2006
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded
12 elseif exists("b:current_syntax")
19 syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
21 " Amiga aliases and paths
22 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:"
23 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
26 syn region amiString start=+"+ end=+"+ oneline contains=@Spell
29 syn match amiNumber "\<\d\+\>"
32 syn region amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif" contains=ALL
33 syn keyword amiFlow skip endskip
34 syn match amiError "else\|endif"
35 syn keyword amiElse contained else
37 syn keyword amiTest contained not warn error fail eq gt ge val exists
40 syn region amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
41 syn region amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
42 syn region amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
45 syn keyword amiKey addbuffers copy fault join pointer setdate
46 syn keyword amiKey addmonitor cpu filenote keyshow printer setenv
47 syn keyword amiKey alias date fixfonts lab printergfx setfont
48 syn keyword amiKey ask delete fkey list printfiles setmap
49 syn keyword amiKey assign dir font loadwb prompt setpatch
50 syn keyword amiKey autopoint diskchange format lock protect sort
51 syn keyword amiKey avail diskcopy get magtape quit stack
52 syn keyword amiKey binddrivers diskdoctor getenv makedir relabel status
53 syn keyword amiKey bindmonitor display graphicdump makelink remrad time
54 syn keyword amiKey blanker iconedit more rename type
55 syn keyword amiKey break ed icontrol mount resident unalias
56 syn keyword amiKey calculator edit iconx newcli run unset
57 syn keyword amiKey cd endcli ihelp newshell say unsetenv
58 syn keyword amiKey changetaskpri endshell info nocapslock screenmode version
59 syn keyword amiKey clock eval initprinter nofastmem search wait
60 syn keyword amiKey cmd exchange input overscan serial wbpattern
61 syn keyword amiKey colors execute install palette set which
62 syn keyword amiKey conclip failat iprefs path setclock why
65 syn cluster amiCommentGroup contains=amiTodo,@Spell
67 syn keyword amiTodo contained todo
69 syn match amiComment ";.*$" contains=amiCommentGroup
74 " Define the default highlighting.
75 " For version 5.7 and earlier: only when not done already
76 " For version 5.8 and later: only when an item doesn't have highlighting yet
77 if version >= 508 || !exists("did_amiga_syn_inits")
79 let did_amiga_syn_inits = 1
80 command -nargs=+ HiLink hi link <args>
82 command -nargs=+ HiLink hi def link <args>
86 HiLink amiComment Comment
89 HiLink amiElse Statement
91 HiLink amiKey Statement
92 HiLink amiNumber Number
93 HiLink amiString String
94 HiLink amiTest Special
99 let b:current_syntax = "amiga"