Mercurial > vim
annotate runtime/syntax/gdmo.vim @ 28568:53f25723f378 v8.2.4808
patch 8.2.4808: unused item in engine struct
Commit: https://github.com/vim/vim/commit/33d3ce640c63366e26b84c8d6f5798187a258ee2
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 23 10:41:35 2022 +0100
patch 8.2.4808: unused item in engine struct
Problem: Unused item in engine struct.
Solution: Remove "expr". Add comment with tags.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Apr 2022 11:45:03 +0200 |
parents | 46763b01cd9a |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: GDMO | |
3 " (ISO-10165-4; Guidelines for the Definition of Managed Object) | |
2908 | 4 " Maintainer: Gyuman (Chester) Kim <violkim@gmail.com> |
5 " URL: http://classicalprogrammer.wikidot.com/local--files/vim-syntax-file-for-gdmo/gdmo.vim | |
6 " Last change: 8th June, 2011 | |
7 | 7 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2908
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:
2908
diff
changeset
|
9 if exists("b:current_syntax") |
7 | 10 finish |
11 endif | |
12 | |
13 " keyword definitions | |
14 syn match gdmoCategory "MANAGED\s\+OBJECT\s\+CLASS" | |
15 syn keyword gdmoCategory NOTIFICATION ATTRIBUTE BEHAVIOUR PACKAGE ACTION | |
16 syn match gdmoCategory "NAME\s\+BINDING" | |
17 syn match gdmoRelationship "DERIVED\s\+FROM" | |
18 syn match gdmoRelationship "SUPERIOR\s\+OBJECT\s\+CLASS" | |
19 syn match gdmoRelationship "SUBORDINATE\s\+OBJECT\s\+CLASS" | |
20 syn match gdmoExtension "AND\s\+SUBCLASSES" | |
21 syn match gdmoDefinition "DEFINED\s\+AS" | |
22 syn match gdmoDefinition "REGISTERED\s\+AS" | |
23 syn match gdmoExtension "ORDER\s\+BY" | |
24 syn match gdmoReference "WITH\s\+ATTRIBUTE" | |
25 syn match gdmoReference "WITH\s\+INFORMATION\s\+SYNTAX" | |
26 syn match gdmoReference "WITH\s\+REPLY\s\+SYNTAX" | |
27 syn match gdmoReference "WITH\s\+ATTRIBUTE\s\+SYNTAX" | |
28 syn match gdmoExtension "AND\s\+ATTRIBUTE\s\+IDS" | |
29 syn match gdmoExtension "MATCHES\s\+FOR" | |
30 syn match gdmoReference "CHARACTERIZED\s\+BY" | |
31 syn match gdmoReference "CONDITIONAL\s\+PACKAGES" | |
32 syn match gdmoExtension "PRESENT\s\+IF" | |
33 syn match gdmoExtension "DEFAULT\s\+VALUE" | |
34 syn match gdmoExtension "PERMITTED\s\+VALUES" | |
35 syn match gdmoExtension "REQUIRED\s\+VALUES" | |
36 syn match gdmoExtension "NAMED\s\+BY" | |
37 syn keyword gdmoReference ATTRIBUTES NOTIFICATIONS ACTIONS | |
38 syn keyword gdmoExtension DELETE CREATE | |
39 syn keyword gdmoExtension EQUALITY SUBSTRINGS ORDERING | |
40 syn match gdmoExtension "REPLACE-WITH-DEFAULT" | |
41 syn match gdmoExtension "GET" | |
42 syn match gdmoExtension "GET-REPLACE" | |
43 syn match gdmoExtension "ADD-REMOVE" | |
44 syn match gdmoExtension "WITH-REFERENCE-OBJECT" | |
45 syn match gdmoExtension "WITH-AUTOMATIC-INSTANCE-NAMING" | |
46 syn match gdmoExtension "ONLY-IF-NO-CONTAINED-OBJECTS" | |
47 | |
48 | |
49 " Strings and constants | |
50 syn match gdmoSpecial contained "\\\d\d\d\|\\." | |
51 syn region gdmoString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=gdmoSpecial | |
52 syn match gdmoCharacter "'[^\\]'" | |
53 syn match gdmoSpecialCharacter "'\\.'" | |
54 syn match gdmoNumber "0[xX][0-9a-fA-F]\+\>" | |
55 syn match gdmoLineComment "--.*" | |
56 syn match gdmoLineComment "--.*--" | |
57 | |
58 syn match gdmoDefinition "^\s*[a-zA-Z][-a-zA-Z0-9_.\[\] \t{}]* *::="me=e-3 | |
59 syn match gdmoBraces "[{}]" | |
60 | |
61 syn sync ccomment gdmoComment | |
62 | |
63 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2908
diff
changeset
|
64 " Only when an item doesn't have highlighting yet |
7 | 65 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
66 hi def link gdmoCategory Structure |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
67 hi def link gdmoRelationship Macro |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
68 hi def link gdmoDefinition Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
69 hi def link gdmoReference Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
70 hi def link gdmoExtension Operator |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
71 hi def link gdmoBraces Function |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
72 hi def link gdmoSpecial Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
73 hi def link gdmoString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
74 hi def link gdmoCharacter Character |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
75 hi def link gdmoSpecialCharacter gdmoSpecial |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
76 hi def link gdmoComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
77 hi def link gdmoLineComment gdmoComment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
78 hi def link gdmoType Type |
7 | 79 |
80 | |
81 let b:current_syntax = "gdmo" | |
82 | |
83 " vim: ts=8 |