blob: 5a664c4f608a93865b33948af4ab6d907457c172 [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim syntax file
2" Language: AmigaDos
Bram Moolenaar1d9215b2020-01-25 13:27:42 +01003" Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
Bram Moolenaarf37506f2016-08-31 22:22:10 +02004" Last Change: Aug 31, 2016
Bram Moolenaar1d9215b2020-01-25 13:27:42 +01005" Version: 10
Bram Moolenaare2719092015-01-10 15:09:25 +01006" 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 Moolenaarf37506f2016-08-31 22:22:10 +020072if !exists("skip_amiga_syntax_inits")
Bram Moolenaar071d4272004-06-13 20:20:40 +000073
Bram Moolenaarf37506f2016-08-31 22:22:10 +020074 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
Bram Moolenaar071d4272004-06-13 20:20:40 +000084
Bram Moolenaarf37506f2016-08-31 22:22:10 +020085endif
Bram Moolenaar071d4272004-06-13 20:20:40 +000086let b:current_syntax = "amiga"
87
88" vim:ts=15