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