Mercurial > vim
annotate runtime/syntax/amiga.vim @ 10048:43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 30 23:26:57 2016 +0200
Updated runtime files. Remove version checks for Vim older than 6.0.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 30 Aug 2016 23:30:09 +0200 |
parents | b3bc99b909c3 |
children | 46763b01cd9a |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: AmigaDos | |
6479 | 3 " 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 | |
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. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
72 " Only when an item doesn't have highlighting yet |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
73 command -nargs=+ HiLink hi def link <args> |
7 | 74 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
75 HiLink amiAlias Type |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
76 HiLink amiComment Comment |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
77 HiLink amiDev Type |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
78 HiLink amiEcho String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
79 HiLink amiElse Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
80 HiLink amiError Error |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
81 HiLink amiKey Statement |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
82 HiLink amiNumber Number |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
83 HiLink amiString String |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
84 HiLink amiTest Special |
7 | 85 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6479
diff
changeset
|
86 delcommand HiLink |
7 | 87 |
88 let b:current_syntax = "amiga" | |
89 | |
90 " vim:ts=15 |