3 " Maintainer: Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
4 " Last Change: September 26, 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")
18 syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
20 " Amiga aliases and paths
21 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:"
22 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
25 syn region amiString start=+"+ end=+"+ oneline
28 syn match amiNumber "\<\d\+\>"
31 syn region amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif" contains=ALL
32 syn keyword amiFlow skip endskip
33 syn match amiError "else\|endif"
34 syn keyword amiElse contained else
36 syn keyword amiTest contained not warn error fail eq gt ge val exists
39 syn region amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
40 syn region amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
41 syn region amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
44 syn keyword amiKey addbuffers copy fault join pointer setdate
45 syn keyword amiKey addmonitor cpu filenote keyshow printer setenv
46 syn keyword amiKey alias date fixfonts lab printergfx setfont
47 syn keyword amiKey ask delete fkey list printfiles setmap
48 syn keyword amiKey assign dir font loadwb prompt setpatch
49 syn keyword amiKey autopoint diskchange format lock protect sort
50 syn keyword amiKey avail diskcopy get magtape quit stack
51 syn keyword amiKey binddrivers diskdoctor getenv makedir relabel status
52 syn keyword amiKey bindmonitor display graphicdump makelink remrad time
53 syn keyword amiKey blanker iconedit more rename type
54 syn keyword amiKey break ed icontrol mount resident unalias
55 syn keyword amiKey calculator edit iconx newcli run unset
56 syn keyword amiKey cd endcli ihelp newshell say unsetenv
57 syn keyword amiKey changetaskpri endshell info nocapslock screenmode version
58 syn keyword amiKey clock eval initprinter nofastmem search wait
59 syn keyword amiKey cmd exchange input overscan serial wbpattern
60 syn keyword amiKey colors execute install palette set which
61 syn keyword amiKey conclip failat iprefs path setclock why
64 syn cluster amiCommentGroup contains=amiTodo
66 syn keyword amiTodo contained todo
68 syn match amiComment ";.*$" contains=amiCommentGroup
73 " Define the default highlighting.
74 " For version 5.7 and earlier: only when not done already
75 " For version 5.8 and later: only when an item doesn't have highlighting yet
76 if version >= 508 || !exists("did_amiga_syn_inits")
78 let did_amiga_syn_inits = 1
79 command -nargs=+ HiLink hi link <args>
81 command -nargs=+ HiLink hi def link <args>
85 HiLink amiComment Comment
88 HiLink amiElse Statement
90 HiLink amiKey Statement
91 HiLink amiNumber Number
92 HiLink amiString String
93 HiLink amiTest Special
98 let b:current_syntax = "amiga"