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