Ticket #2929: schema.syntax

File schema.syntax, 7.7 KB (added by klark973, 11 years ago)

Copy this to the /usr/share/mc/syntax

Line 
1# OpenLDAP Schema file syntax
2# Copyleft, by KLArk (A), 2012
3#
4
5define KeyName cyan
6define Comments green
7define StringID yellow
8define SchemaEquality red
9define SchemaStruct white
10define SchemaOID brightblue
11define DigitalID brightgreen
12define SchemaAttrUsage brightred
13
14
15context default
16    keyword linestart # Comments
17    keyword whole linestart \{Oo\}\{Bb\}\{Jj\}\{Ee\}\{Cc\}\{Tt\}\{Ii\}\{Dd\}\{Ee\}\{Nn\}\{Tt\}\{Ii\}\{Ff\}\{Ii\}\{Ee\}\{Rr\} KeyName
18    keyword whole linestart \{Aa\}\{Tt\}\{Tt\}\{Rr\}\{Ii\}\{Bb\}\{Uu\}\{Tt\}\{Ee\}\{Tt\}\{Yy\}\{Pp\}\{Ee\} KeyName
19    keyword whole linestart \{Oo\}\{Bb\}\{Jj\}\{Ee\}\{Cc\}\{Tt\}\{Cc\}\{Ll\}\{Aa\}\{Ss\}\{Ss\} KeyName
20
21# Comments
22context exclusive linestart # \n Comments
23
24
25# objectidentifier
26
27context exclusive linestart O\{Bb\}\{Jj\}\{Ee\}\{Cc\}\{Tt\}\{Ii\}\{Dd\}\{Ee\}\{Nn\}\{Tt\}\{Ii\}\{Ff\}\{Ii\}\{Ee\}\{Rr\} \n
28    keyword whole \{01234567890\}\[.01234567890\] SchemaOID
29
30context exclusive linestart o\{Bb\}\{Jj\}\{Ee\}\{Cc\}\{Tt\}\{Ii\}\{Dd\}\{Ee\}\{Nn\}\{Tt\}\{Ii\}\{Ff\}\{Ii\}\{Ee\}\{Rr\} \n
31    keyword whole \{01234567890\}\[.01234567890\] SchemaOID
32
33
34# attributetype
35
36context exclusive linestart A\{Tt\}\{Tt\}\{Rr\}\{Ii\}\{Bb\}\{Uu\}\{Tt\}\{Ee\}\{Tt\}\{Yy\}\{Pp\}\{Ee\} \n\{#\n\}
37    keyword '*' StringID
38
39    keyword whole ( SchemaStruct
40    keyword whole ) SchemaStruct
41    keyword whole SUP SchemaStruct
42    keyword whole NAME SchemaStruct
43    keyword whole DESC SchemaStruct
44    keyword whole USAGE SchemaStruct
45    keyword whole SUBSTR SchemaStruct
46    keyword whole SYNTAX SchemaStruct
47    keyword whole OBSOLETE SchemaStruct
48    keyword whole EQUALITY SchemaStruct
49    keyword whole ORDERING SchemaStruct
50    keyword whole COLLECTIVE SchemaStruct
51    keyword whole SINGLE-VALUE SchemaStruct
52    keyword whole NO-USER-MODIFICATION SchemaStruct
53
54    keyword whole userApplications SchemaAttrUsage
55    keyword whole directoryOperation SchemaAttrUsage
56    keyword whole distributedOperation SchemaAttrUsage
57    keyword whole dSAOperation SchemaAttrUsage
58
59    keyword whole booleanMatch SchemaEquality
60    keyword whole caseIgnoreMatch SchemaEquality
61    keyword whole caseIgnoreOrderingMatch SchemaEquality
62    keyword whole caseIgnoreSubstringsMatch SchemaEquality
63    keyword whole caseExactMatch SchemaEquality
64    keyword whole caseExactOrderingMatch SchemaEquality
65    keyword whole caseExactSubstringsMatch SchemaEquality
66    keyword whole distinguishedNameMatch SchemaEquality
67    keyword whole integerMatch SchemaEquality
68    keyword whole integerOrderingMatch SchemaEquality
69    keyword whole numericStringMatch SchemaEquality
70    keyword whole numericStringOrderingMatch SchemaEquality
71    keyword whole numericStringSubstringsMatch SchemaEquality
72    keyword whole octetStringMatch SchemaEquality
73    keyword whole octetStringOrderingMatch SchemaEquality
74    keyword whole octetStringSubstringsMatch SchemaEquality
75    keyword whole objectIdentiferMatch SchemaEquality
76    keyword whole caseIgnoreListMatch SchemaEquality
77    keyword whole caseIgnoreListSubstringsMatch SchemaEquality
78    keyword whole telephoneNumberMatch SchemaEquality
79    keyword whole telephoneNumberSubstringsMatch SchemaEquality
80    keyword whole presentationAddressMatch SchemaEquality
81    keyword whole objectIdentifierMatch SchemaEquality
82    keyword whole certificateExactMatch SchemaEquality
83    keyword whole bitStringMatch SchemaEquality
84    keyword whole protocolInformationMatch SchemaEquality
85    keyword whole uniqueMemberMatch SchemaEquality
86    keyword whole caseExactIA5Match SchemaEquality
87    keyword whole caseIgnoreIA5Match SchemaEquality
88    keyword whole caseExactIA5SubstringsMatch SchemaEquality
89    keyword whole caseIgnoreIA5SubstringsMatch SchemaEquality
90
91    keyword wholeright {\{01234567890\}\[.01234567890\]} DigitalID
92
93    keyword whole \{01234567890\}\[.01234567890\] SchemaOID
94
95context exclusive linestart a\{Tt\}\{Tt\}\{Rr\}\{Ii\}\{Bb\}\{Uu\}\{Tt\}\{Ee\}\{Tt\}\{Yy\}\{Pp\}\{Ee\} \n\{#\n\}
96    keyword '*' StringID
97
98    keyword whole ( SchemaStruct
99    keyword whole ) SchemaStruct
100    keyword whole SUP SchemaStruct
101    keyword whole NAME SchemaStruct
102    keyword whole DESC SchemaStruct
103    keyword whole USAGE SchemaStruct
104    keyword whole SUBSTR SchemaStruct
105    keyword whole SYNTAX SchemaStruct
106    keyword whole OBSOLETE SchemaStruct
107    keyword whole EQUALITY SchemaStruct
108    keyword whole ORDERING SchemaStruct
109    keyword whole COLLECTIVE SchemaStruct
110    keyword whole SINGLE-VALUE SchemaStruct
111    keyword whole NO-USER-MODIFICATION SchemaStruct
112
113    keyword whole userApplications SchemaAttrUsage
114    keyword whole directoryOperation SchemaAttrUsage
115    keyword whole distributedOperation SchemaAttrUsage
116    keyword whole dSAOperation SchemaAttrUsage
117
118    keyword whole booleanMatch SchemaEquality
119    keyword whole caseIgnoreMatch SchemaEquality
120    keyword whole caseIgnoreOrderingMatch SchemaEquality
121    keyword whole caseIgnoreSubstringsMatch SchemaEquality
122    keyword whole caseExactMatch SchemaEquality
123    keyword whole caseExactOrderingMatch SchemaEquality
124    keyword whole caseExactSubstringsMatch SchemaEquality
125    keyword whole distinguishedNameMatch SchemaEquality
126    keyword whole integerMatch SchemaEquality
127    keyword whole integerOrderingMatch SchemaEquality
128    keyword whole numericStringMatch SchemaEquality
129    keyword whole numericStringOrderingMatch SchemaEquality
130    keyword whole numericStringSubstringsMatch SchemaEquality
131    keyword whole octetStringMatch SchemaEquality
132    keyword whole octetStringOrderingMatch SchemaEquality
133    keyword whole octetStringSubstringsMatch SchemaEquality
134    keyword whole objectIdentiferMatch SchemaEquality
135    keyword whole caseIgnoreListMatch SchemaEquality
136    keyword whole caseIgnoreListSubstringsMatch SchemaEquality
137    keyword whole telephoneNumberMatch SchemaEquality
138    keyword whole telephoneNumberSubstringsMatch SchemaEquality
139    keyword whole presentationAddressMatch SchemaEquality
140    keyword whole objectIdentifierMatch SchemaEquality
141    keyword whole certificateExactMatch SchemaEquality
142    keyword whole bitStringMatch SchemaEquality
143    keyword whole protocolInformationMatch SchemaEquality
144    keyword whole uniqueMemberMatch SchemaEquality
145    keyword whole caseExactIA5Match SchemaEquality
146    keyword whole caseIgnoreIA5Match SchemaEquality
147    keyword whole caseExactIA5SubstringsMatch SchemaEquality
148    keyword whole caseIgnoreIA5SubstringsMatch SchemaEquality
149
150    keyword wholeright {\{01234567890\}\[.01234567890\]} DigitalID
151
152    keyword whole \{01234567890\}\[.01234567890\] SchemaOID
153
154
155
156# objectclass
157
158context exclusive linestart O\{Bb\}\{Jj\}\{Ee\}\{Cc\}\{Tt\}\{Cc\}\{Ll\}\{Aa\}\{Ss\}\{Ss\} \n\{#\n\}
159    keyword '*' StringID
160
161    keyword whole ( SchemaStruct
162    keyword whole ) SchemaStruct
163    keyword whole $ SchemaStruct
164    keyword whole SUP SchemaStruct
165    keyword whole MAY SchemaStruct
166    keyword whole MUST SchemaStruct
167    keyword whole NAME SchemaStruct
168    keyword whole DESC SchemaStruct
169    keyword whole OBSOLETE SchemaStruct
170    keyword whole ABSTRACT SchemaStruct
171    keyword whole AUXILIARY SchemaStruct
172    keyword whole STRUCTURAL SchemaStruct
173
174    keyword whole \{01234567890\}\[.01234567890\] SchemaOID
175
176context exclusive linestart o\{Bb\}\{Jj\}\{Ee\}\{Cc\}\{Tt\}\{Cc\}\{Ll\}\{Aa\}\{Ss\}\{Ss\} \n\{#\n\}
177    keyword '*' StringID
178
179    keyword whole ( SchemaStruct
180    keyword whole ) SchemaStruct
181    keyword whole $ SchemaStruct
182    keyword whole SUP SchemaStruct
183    keyword whole MAY SchemaStruct
184    keyword whole MUST SchemaStruct
185    keyword whole NAME SchemaStruct
186    keyword whole DESC SchemaStruct
187    keyword whole OBSOLETE SchemaStruct
188    keyword whole ABSTRACT SchemaStruct
189    keyword whole AUXILIARY SchemaStruct
190    keyword whole STRUCTURAL SchemaStruct
191
192    keyword whole \{01234567890\}\[.01234567890\] SchemaOID
193