blob: e094cfc74495aedf5d02671f09c98ac2faf734e0 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: AmigaDos
Bram Moolenaare2719092015-01-10 15:09:25 +01003" Maintainer: Charles E. Campbell <NdrOchipS@PcampbellAfamily.Mbiz>
4" Last Change: Oct 23, 2014
5" Version: 7
6" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_AMIGA
Bram Moolenaar071d4272004-06-13 20:20:40 +00007
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02008" quit when a syntax file was already loaded
9if exists("b:current_syntax")
Bram Moolenaar071d4272004-06-13 20:20:40 +000010 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
Bram Moolenaar9964e462007-05-05 17:54:07 +000023syn region amiString start=+"+ end=+"+ oneline contains=@Spell
Bram Moolenaar071d4272004-06-13 20:20:40 +000024
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.
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020072" Only when an item doesn't have highlighting yet
73command -nargs=+ HiLink hi def link <args>
Bram Moolenaar071d4272004-06-13 20:20:40 +000074
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020075HiLink amiAlias Type
76HiLink amiComment Comment
77HiLink amiDev Type
78HiLink amiEcho String
79HiLink amiElse Statement
80HiLink amiError Error
81HiLink amiKey Statement
82HiLink amiNumber Number
83HiLink amiString String
84HiLink amiTest Special
Bram Moolenaar071d4272004-06-13 20:20:40 +000085
Bram Moolenaar89bcfda2016-08-30 23:26:57 +020086delcommand HiLink
Bram Moolenaar071d4272004-06-13 20:20:40 +000087
88let b:current_syntax = "amiga"
89
90" vim:ts=15