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