annotate runtime/syntax/amiga.vim @ 1621:82b5078be2dd

updated for version 7.2a
author vimboss
date Tue, 24 Jun 2008 21:56:24 +0000
parents e63691e7c504
children b3bc99b909c3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: AmigaDos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Dr. Charles E. Campbell, Jr. <NdrOchipS@PcampbellAfamily.Mbiz>
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 507
diff changeset
4 " Last Change: Sep 11, 2006
e63691e7c504 updated for version 7.1a
vimboss
parents: 507
diff changeset
5 " Version: 6
507
a1059cda45f2 updated for version 7.0142
vimboss
parents: 7
diff changeset
6 " URL: http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Amiga Devices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " Amiga aliases and paths
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " strings
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 507
diff changeset
26 syn region amiString start=+"+ end=+"+ oneline contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match amiNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Logic flow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn region amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword amiFlow skip endskip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match amiError "else\|endif"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword amiElse contained else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword amiTest contained not warn error fail eq gt ge val exists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 " echo exception
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn region amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn region amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword amiKey addbuffers copy fault join pointer setdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword amiKey addmonitor cpu filenote keyshow printer setenv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword amiKey alias date fixfonts lab printergfx setfont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword amiKey ask delete fkey list printfiles setmap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword amiKey assign dir font loadwb prompt setpatch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword amiKey autopoint diskchange format lock protect sort
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword amiKey avail diskcopy get magtape quit stack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword amiKey binddrivers diskdoctor getenv makedir relabel status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword amiKey bindmonitor display graphicdump makelink remrad time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword amiKey blanker iconedit more rename type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword amiKey break ed icontrol mount resident unalias
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword amiKey calculator edit iconx newcli run unset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword amiKey cd endcli ihelp newshell say unsetenv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword amiKey changetaskpri endshell info nocapslock screenmode version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword amiKey clock eval initprinter nofastmem search wait
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword amiKey cmd exchange input overscan serial wbpattern
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn keyword amiKey colors execute install palette set which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword amiKey conclip failat iprefs path setclock why
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn cluster amiCommentGroup contains=amiTodo,@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn keyword amiTodo contained todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn match amiComment ";.*$" contains=amiCommentGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 " sync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 syn sync lines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 if version >= 508 || !exists("did_amiga_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 let did_amiga_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 HiLink amiAlias Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 HiLink amiComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 HiLink amiDev Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 HiLink amiEcho String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 HiLink amiElse Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 HiLink amiError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 HiLink amiKey Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 HiLink amiNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 HiLink amiString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 HiLink amiTest Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 let b:current_syntax = "amiga"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 " vim:ts=15