1" Vim syntax file 2" Language: AmigaDos 3" Maintainer: Charles E. Campbell <[email protected]> 4" Last Change: Aug 31, 2016 5" Version: 10 6" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_AMIGA 7 8" quit when a syntax file was already loaded 9if exists("b:current_syntax") 10 finish 11endif 12 13syn case ignore 14 15" Amiga Devices 16syn match amiDev "\(par\|ser\|prt\|con\|nil\):" 17 18" Amiga aliases and paths 19syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:" 20syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/" 21 22" strings 23syn region amiString start=+"+ end=+"+ oneline contains=@Spell 24 25" numbers 26syn match amiNumber "\<\d\+\>" 27 28" Logic flow 29syn region amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif" contains=ALL 30syn keyword amiFlow skip endskip 31syn match amiError "else\|endif" 32syn keyword amiElse contained else 33 34syn keyword amiTest contained not warn error fail eq gt ge val exists 35 36" echo exception 37syn region amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment 38syn region amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline 39syn region amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline 40 41" commands 42syn keyword amiKey addbuffers copy fault join pointer setdate 43syn keyword amiKey addmonitor cpu filenote keyshow printer setenv 44syn keyword amiKey alias date fixfonts lab printergfx setfont 45syn keyword amiKey ask delete fkey list printfiles setmap 46syn keyword amiKey assign dir font loadwb prompt setpatch 47syn keyword amiKey autopoint diskchange format lock protect sort 48syn keyword amiKey avail diskcopy get magtape quit stack 49syn keyword amiKey binddrivers diskdoctor getenv makedir relabel status 50syn keyword amiKey bindmonitor display graphicdump makelink remrad time 51syn keyword amiKey blanker iconedit more rename type 52syn keyword amiKey break ed icontrol mount resident unalias 53syn keyword amiKey calculator edit iconx newcli run unset 54syn keyword amiKey cd endcli ihelp newshell say unsetenv 55syn keyword amiKey changetaskpri endshell info nocapslock screenmode version 56syn keyword amiKey clock eval initprinter nofastmem search wait 57syn keyword amiKey cmd exchange input overscan serial wbpattern 58syn keyword amiKey colors execute install palette set which 59syn keyword amiKey conclip failat iprefs path setclock why 60 61" comments 62syn cluster amiCommentGroup contains=amiTodo,@Spell 63syn case ignore 64syn keyword amiTodo contained todo 65syn case match 66syn match amiComment ";.*$" contains=amiCommentGroup 67 68" sync 69syn sync lines=50 70 71" Define the default highlighting. 72if !exists("skip_amiga_syntax_inits") 73 74 hi def link amiAlias Type 75 hi def link amiComment Comment 76 hi def link amiDev Type 77 hi def link amiEcho String 78 hi def link amiElse Statement 79 hi def link amiError Error 80 hi def link amiKey Statement 81 hi def link amiNumber Number 82 hi def link amiString String 83 hi def link amiTest Special 84 85endif 86let b:current_syntax = "amiga" 87 88" vim:ts=15 89