Debian Codegraph @

data/syntax/hunspell-dic.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE language >
3 <language name="Hunspell Dictionary File" section="Other" extensions="*.dic" priority="-9" version="3" kateversion="5.0" 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.">
4
5 <highlighting>
6
7 <list name="list_hyphenKeywords">
8 <item>LEFTHYPHENMIN</item>
9 <item>RIGHTHYPHENMIN</item>
10 <item>COMPOUNDLEFTHYPHENMIN</item>
11 <item>COMPOUNDRIGHTHYPHENMIN</item>
12 <item>NEXTWORD</item>
13 <item>NOHYPHEN</item>
14 <item>NEXTLEVEL</item>
15 </list>
16
17 <contexts>
18
19 <context name="context_dic" attribute="Undefined" lineEndContext="context_spell" >
20 <!-- detect in the first line wether this is a hyphen dictionary (continue with context_hyphen) or a spell check dictionary (continue with context_spell) -->
21 <Int attribute="Number" context="context_spell" column="0" />
22 <RegExpr attribute="Encoding" context="context_hyphen" String=".*" />
23 </context>
24
25 <context name="context_hyphen" attribute="String" lineEndContext="#stay">
26 <AnyChar String="0123456789" attribute="Number" context="#stay" />
27 <DetectChar char="." attribute="Keyword" context="#stay" />
28 <DetectChar char="/" attribute="Keyword" context="context_hyphen_parameters" />
29 <AnyChar String="#%" column="0" attribute="Comment" context="context_comment" />
30 <keyword attribute="Keyword" context="#stay" String="list_hyphenKeywords" column="0" />
31 </context>
32
33 <context name="context_hyphen_parameters" attribute="String" lineEndContext="#pop">
34 <AnyChar String=",=" attribute="Keyword" context="#stay" />
35 <AnyChar String="0123456789" attribute="Number" context="#stay" />
36 </context>
37
38 <context name="context_spell" attribute="String" lineEndContext="#stay">
39 <DetectChar char="#" column="0" attribute="Comment" context="context_comment" />
40 <DetectChar char="/" attribute="Keyword" context="context_spell_flags" />
41 <DetectSpaces context="context_spell_options" />
42 </context>
43
44 <context name="context_spell_flags" attribute="Flags" lineEndContext="#pop">
45 <DetectSpaces context="context_spell_options" />
46 </context>
47
48 <context name="context_spell_options" attribute="Keyword" lineEndContext="#pop">
49 <DetectChar char=":" attribute="Keyword" context="context_spell_parameter" />
50 <DetectChar char="#" column="0" attribute="Comment" context="context_comment" />
51 </context>
52
53 <context name="context_spell_parameter" attribute="String" lineEndContext="#pop">
54 <DetectSpaces context="#pop" />
55 </context>
56
57 <context name="context_comment" attribute="Comment" lineEndContext="#pop">
58 <DetectSpaces />
59 <IncludeRules context="##Comments" />
60 <DetectIdentifier />
61 </context>
62
63 </contexts>
64
65
66 <itemDatas>
67 <itemData name="Undefined" defStyleNum="dsNormal" />
68 <itemData name="Keyword" defStyleNum="dsKeyword" />
69 <itemData name="Comment" defStyleNum="dsComment" />
70 <itemData name="Number" defStyleNum="dsDecVal" />
71 <itemData name="String" defStyleNum="dsString" />
72 <itemData name="Flags" defStyleNum="dsChar" />
73 <itemData name="Encoding" defStyleNum="dsDataType" />
74 </itemDatas>
75
76 </highlighting>
77
78
79 <general>
80 <comments>
81 <comment name="singleLine" start="#" />
82 </comments>
83 </general>
84
85 </language>
86 <!-- kate: replace-tabs off; -->