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