blob: bf1c142185306609c41109d500d54f0a4df6bbb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd" >
<language name="Hunspell Affix File" section="Other" extensions="*.aff" priority="-9" version="1" kateversion="2.4" author="Lukas Sommer" license="LGPL version 2.1, or version 3 or later versions approved by the membership of KDE e.V.; or any other license appoved by the emembership of KDE e.V.">
<highlighting>
<!-- This list is commented out. We use a simple fallback rule instead …
<list name="list_keywordsWithNumbersOrFlags">
<!- - keywords without options: - - >
<item>ONLYMAXDIFF</item>
<item>NOSPLITSUGS</item>
<item>SUGSWITHDOTS</item>
<item>FORBIDWARN</item>
<item>CHECKCOMPOUNDDUP</item>
<item>CHECKCOMPOUNDREP</item>
<item>CHECKCOMPOUNDCASE</item>
<item>CHECKCOMPOUNDTRIPLE</item>
<item>SIMPLIFIEDTRIPLE</item>
<item>FULLSTRIP</item>
<item>CHECKSHARPS</item>
<item>COMPLEXPREFIXES</item>
<!- - keywords with flags: - - >
<item>COMPOUNDFLAG</item>
<item>COMPOUNDBEGIN</item>
<item>COMPOUNDLAST</item>
<item>COMPOUNDMIDDLE</item>
<item>ONLYINCOMPOUND</item>
<item>COMPOUNDPERMITFLAG</item>
<item>COMPOUNDFORBIDFLAG</item>
<item>COMPOUNDROOT</item>
<item>COMPOUNDROOT</item>
<item>FORCEUCASE</item>
<item>SYLLABLENUM</item>
<item>CIRCUMFIX</item>
<item>FORBIDDENWORD</item>
<item>KEEPCASE</item>
<item>LEMMA_PRESENT</item>
<item>NEEDAFFIX</item>
<!- - PSEUDOROOT is deprecated. (Former name of the NEEDAFFIX option.) - - >
<item>SUBSTANDARD</item>
<item>NOSUGGEST</item>
<item>WARN</item>
<!- - keywords with number: - - >
<item>MAXCPDSUGS</item>
<item>MAXNGRAMSUGS</item>
<item>MAXDIFF</item>
<item>COMPOUNDMIN</item>
<item>COMPOUNDWORDMAX</item>
<!- - keywords with number or flags: - - >
<item>AF</item>
</list>
-->
<list name="list_keywordsWithEnum">
<item>SET</item>
<item>FLAG</item>
<item>LANG</item>
</list>
<list name="list_keywordsWithCharacters">
<item>TRY</item>
<item>WORDCHARS</item>
<item>IGNORE</item>
</list>
<list name="list_keywordsWithNumbersOrStrings">
<item>BREAK</item>
<item>COMPOUNDSYLLABLE</item>
</list>
<list name="list_keywordsForAffixes">
<item>SFX</item>
<item>PFX</item>
</list>
<list name="list_keywordsWithPattern">
<!-- TODO Maybe we could implement a special highlighting for each of these pattern types? -->
<item>COMPOUNDRULE</item>
<item>PHONE</item>
<item>ICONV</item>
<item>OCONV</item>
<item>KEY</item>
<item>MAP</item>
</list>
<contexts>
<context name="aff" attribute="Undefined" lineEndContext="#stay">
<DetectSpaces />
<keyword attribute="Keyword" context="context_flag_stripping_affix_condition_morphologicalFields" String="list_keywordsForAffixes" column="0" />
<DetectChar char="#" attribute="Comment" context="context_comment" />
<StringDetect String="REP" insensitive="true" attribute="Keyword" context="context_replace" column="0" />
<StringDetect String="CHECKCOMPOUNDPATTERN" insensitive="true" attribute="Keyword" context="context_stringsWithFlags" column="0" />
<keyword attribute="Keyword" context="context_numbersOrString" String="list_keywordsWithNumbersOrStrings" column="0" />
<keyword attribute="Keyword" context="context_characters" String="list_keywordsWithCharacters" column="0" />
<keyword attribute="Keyword" context="context_pattern" String="list_keywordsWithPattern" column="0" />
<keyword attribute="Keyword" context="context_enum" String="list_keywordsWithEnum" column="0" />
<!-- Fallback rule: -->
<DetectIdentifier attribute="Keyword" context="context_numbersOrFlags" column="0" />
</context>
<context name="context_stringsWithFlags" attribute="String" lineEndContext="#pop">
<DetectSpaces />
<DetectChar char="/" attribute="Keyword" context="context_stringsWithFlags_flagHelper" />
<DetectChar char="#" attribute="Comment" context="context_comment" />
</context>
<context name="context_stringsWithFlags_flagHelper" attribute="Flags" lineEndContext="#pop">
<DetectSpaces context="context_stringsWithFlags" />
</context>
<context name="context_characters" attribute="Characters" lineEndContext="#pop">
<DetectSpaces />
<DetectChar char="#" attribute="Comment" context="context_comment" />
</context>
<context name="context_enum" attribute="Choice" lineEndContext="#pop">
<DetectSpaces />
<DetectChar char="#" attribute="Comment" context="context_comment" />
</context>
<context name="context_replace" attribute="Keyword" lineEndContext="#pop">
<DetectSpaces />
<Int attribute="Number" context="#stay" />
<DetectChar char="#" attribute="Comment" context="context_comment" />
<RegExpr context="context_numbersOrString" attribute="Pattern" String="\S*" />
</context>
<context name="context_pattern" attribute="Pattern" lineEndContext="#pop">
<DetectSpaces />
<DetectChar char="#" attribute="Comment" context="context_comment" />
</context>
<context name="context_numbersOrFlags" attribute="Flags" lineEndContext="#pop">
<DetectSpaces />
<Int attribute="Number" context="#stay" />
<DetectChar char="#" attribute="Comment" context="context_comment" />
</context>
<context name="context_numbersOrString" attribute="String" lineEndContext="#pop">
<DetectSpaces />
<Int attribute="Number" context="#stay" />
<DetectChar char="#" attribute="Comment" context="context_comment" />
</context>
<context name="context_flag_stripping_affix_condition_morphologicalFields" attribute="Keyword" lineEndContext="#pop">
<DetectSpaces/>
<DetectChar char="#" attribute="Comment" context="context_comment" />
<RegExpr context="context_stripping_affix_condition_morphologicalFields" attribute="Flags" String="\S*" />
</context>
<context name="context_stripping_affix_condition_morphologicalFields" attribute="Flags" lineEndContext="#pop">
<DetectSpaces/>
<DetectChar char="#" attribute="Comment" context="context_comment" />
<DetectChar char="0" attribute="Skipped parameter" context="context_affix_condition_morphologicalFields" />
<RegExpr context="context_numbersOrString" attribute="Choice" String="(Y|N)\s*(?![^\d])" />
<RegExpr context="context_affix_condition_morphologicalFields" attribute="Stripping" String="\S*" />
</context>
<context name="context_affix_condition_morphologicalFields" attribute="Stripping" lineEndContext="#pop">
<DetectSpaces/>
<DetectChar char="#" attribute="Comment" context="context_comment" />
<RegExpr context="context_slash_flags_condition_morphologicalFields" attribute="Skipped parameter" String="0(?=/)" />
<DetectChar char="0" attribute="Skipped parameter" context="context_condition_morphologicalFields" />
<RegExpr context="context_slash_flags_condition_morphologicalFields" attribute="Affix" String="[^\s/]*(?=/)" />
<DetectChar char="/" context="context_slash_flags_condition_morphologicalFields" lookAhead="true" />
<RegExpr context="context_condition_morphologicalFields" attribute="Affix" String="\S*" />
</context>
<context name="context_slash_flags_condition_morphologicalFields" attribute="Stripping" lineEndContext="#pop">
<DetectChar char="/" attribute="Keyword" />
<RegExpr attribute="Flags" String="\S*" />
<DetectSpaces context="context_condition_morphologicalFields" />
</context>
<context name="context_condition_morphologicalFields" attribute="Stripping" lineEndContext="#pop">
<DetectSpaces/>
<DetectChar char="#" attribute="Comment" context="context_comment" />
<RegExpr attribute="Skipped parameter" String="\.(?!\S)" context="context_morphologicalFields" />
<RegExpr context="context_notSkippedCondition_morphologicalFields" lookAhead="true" String="\S" />
</context>
<context name="context_notSkippedCondition_morphologicalFields" attribute="Stripping" lineEndContext="#pop">
<RegExpr attribute="Pattern" String="\S*" />
<DetectSpaces context="context_morphologicalFields" />
</context>
<context name="context_morphologicalFields" attribute="Keyword" lineEndContext="#pop">
<DetectSpaces/>
<DetectChar char="#" attribute="Comment" context="context_comment" />
<DetectChar char=":" attribute="itemData2_Keyword" context="context_morphologicalFieldsContent" />
</context>
<context name="context_morphologicalFieldsContent" attribute="String" lineEndContext="#pop">
<DetectSpaces context="context_morphologicalFields" />
</context>
<context name="context_comment" attribute="Comment" lineEndContext="#pop">
<DetectSpaces />
<IncludeRules context="##Alerts" />
<DetectIdentifier />
</context>
</contexts>
<itemDatas>
<itemData name="Undefined" defStyleNum="dsNormal" />
<itemData name="Keyword" defStyleNum="dsKeyword" />
<itemData name="Comment" defStyleNum="dsComment" />
<itemData name="Number" defStyleNum="dsDecVal" />
<itemData name="Stripping" defStyleNum="dsString" />
<itemData name="Affix" defStyleNum="dsString" />
<itemData name="String" defStyleNum="dsString" />
<itemData name="Flags" defStyleNum="dsChar" />
<itemData name="Skipped parameter" defStyleNum="dsKeyword" />
<itemData name="Pattern" defStyleNum="dsOthers" />
<itemData name="Characters" defStyleNum="dsChar" />
<itemData name="Choice" defStyleNum="dsDataType" />
</itemDatas>
</highlighting>
<general>
<comments>
<comment name="singleLine" start="#" />
</comments>
</general>
</language>
|