Mercurial > vim
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 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: AmigaDos | |
19180 | 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 | 5 " Version: 10 |
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 |