annotate runtime/syntax/amiga.vim @ 29479:5c390aa28f44 v9.0.0081

patch 9.0.0081: command line completion of user command may have duplicates Commit: https://github.com/vim/vim/commit/c2842adfb2ca0637f13e2793fefa18e7818684f9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jul 26 17:23:47 2022 +0100 patch 9.0.0081: command line completion of user command may have duplicates Problem: Command line completion of user command may have duplicates. (Dani Dickstein) Solution: Skip global user command if an identical buffer-local one is defined. (closes #10797)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Jul 2022 18:30:03 +0200
parents 8edf0aeb71b9
children 02bd0fe77c68
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
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Charles E. Campbell <NcampObell@SdrPchip.AorgM-NOSPAM>
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
19180
8edf0aeb71b9 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Version: 10
6479
b3bc99b909c3 Updated syntax files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
6 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_AMIGA
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Amiga Devices
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match amiDev "\(par\|ser\|prt\|con\|nil\):"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Amiga aliases and paths
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match amiAlias "\<[a-zA-Z][a-zA-Z0-9]\+:[a-zA-Z0-9/]*/"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " strings
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 507
diff changeset
23 syn region amiString start=+"+ end=+"+ oneline contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " numbers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match amiNumber "\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Logic flow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region amiFlow matchgroup=Statement start="if" matchgroup=Statement end="endif" contains=ALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn keyword amiFlow skip endskip
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match amiError "else\|endif"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn keyword amiElse contained else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword amiTest contained not warn error fail eq gt ge val exists
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " echo exception
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn region amiEcho matchgroup=Statement start="\<echo\>" end="$" oneline contains=amiComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn region amiEcho matchgroup=Statement start="^\.[bB][rR][aA]" end="$" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn region amiEcho matchgroup=Statement start="^\.[kK][eE][tT]" end="$" oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn keyword amiKey addbuffers copy fault join pointer setdate
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword amiKey addmonitor cpu filenote keyshow printer setenv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword amiKey alias date fixfonts lab printergfx setfont
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword amiKey ask delete fkey list printfiles setmap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword amiKey assign dir font loadwb prompt setpatch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn keyword amiKey autopoint diskchange format lock protect sort
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword amiKey avail diskcopy get magtape quit stack
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword amiKey binddrivers diskdoctor getenv makedir relabel status
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn keyword amiKey bindmonitor display graphicdump makelink remrad time
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword amiKey blanker iconedit more rename type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn keyword amiKey break ed icontrol mount resident unalias
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword amiKey calculator edit iconx newcli run unset
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn keyword amiKey cd endcli ihelp newshell say unsetenv
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword amiKey changetaskpri endshell info nocapslock screenmode version
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword amiKey clock eval initprinter nofastmem search wait
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn keyword amiKey cmd exchange input overscan serial wbpattern
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword amiKey colors execute install palette set which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword amiKey conclip failat iprefs path setclock why
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " comments
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn cluster amiCommentGroup contains=amiTodo,@Spell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword amiTodo contained todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn match amiComment ";.*$" contains=amiCommentGroup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 " sync
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 syn sync lines=50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
85 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 let b:current_syntax = "amiga"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " vim:ts=15