Changeset View
Changeset View
Standalone View
Standalone View
data/syntax/wml.xml
1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
---|---|---|---|---|---|
2 | <!DOCTYPE language SYSTEM "language.dtd"> | 2 | <!DOCTYPE language SYSTEM "language.dtd"> | ||
3 | <!-- | 3 | <!-- | ||
4 | Thread for discussions: http://www.wesnoth.org/forum/viewtopic.php?f=21&t=13781 | 4 | Thread for discussions: http://www.wesnoth.org/forum/viewtopic.php?f=21&t=13781 | ||
5 | Alternatively try the "normal" way: #kate@freenode, kwrite-devel@kde.org | 5 | Alternatively try the "normal" way: #kate@freenode, kwrite-devel@kde.org | ||
6 | Changelog (0.35 and later): | 6 | Changelog (0.35 and later): | ||
7 | *************************** | 7 | *************************** | ||
8 | * 0.42.1 | 8 | * 0.42.1 | ||
9 | - 2019-01-01 <nibgonz@gmail.com> | 9 | - 2019-01-01 <nibgonz@gmail.com> | ||
10 | * Fix infinite loop between the "section" & "error" contexts. | 10 | * Fix infinite loop between the "section" & "error" contexts. | ||
11 | * Only highlight tags with valid name format. | 11 | * Only highlight tags with valid name format. | ||
12 | * Don't highlight array indices as tags. | 12 | * Don't highlight array indices as tags. | ||
13 | * Use new default styles & fix embedded Lua code. | ||||
13 | * 0.42 | 14 | * 0.42 | ||
14 | - 2011-11-15 <shadowm2006@gmail.com>: | 15 | - 2011-11-15 <shadowm2006@gmail.com>: | ||
15 | * Added preprocessor directives: #error, #warning | 16 | * Added preprocessor directives: #error, #warning | ||
16 | * Added highlighting for the wmlxgettext annotation metadirective (po:) | 17 | * Added highlighting for the wmlxgettext annotation metadirective (po:) | ||
17 | * 0.41 | 18 | * 0.41 | ||
18 | - 2011-04-15 <shadowm2006@gmail.com>: | 19 | - 2011-04-15 <shadowm2006@gmail.com>: | ||
19 | * Added preprocessor directives: #if(n)have, #if(n)ver | 20 | * Added preprocessor directives: #if(n)have, #if(n)ver | ||
20 | * Revalidated against language.dtd | 21 | * Revalidated against language.dtd | ||
Show All 33 Lines | 54 | - 2008-01-?? <shadowm2006@gmail.com>: | |||
54 | * Made #textdomain another preprocessor directive, as is handled by the game at /src/serialization/preprocessor.cpp | 55 | * Made #textdomain another preprocessor directive, as is handled by the game at /src/serialization/preprocessor.cpp | ||
55 | line 634 and around | 56 | line 634 and around | ||
56 | - 2007-11-?? <shadowm2006@gmail.com>: | 57 | - 2007-11-?? <shadowm2006@gmail.com>: | ||
57 | * Minor improvements? | 58 | * Minor improvements? | ||
58 | - 2007-11-?? <shadowm2006@gmail.com>: | 59 | - 2007-11-?? <shadowm2006@gmail.com>: | ||
59 | * Made the new #ifndef directive be recognized (implemented on Wesnoth 1.3.11 and later) | 60 | * Made the new #ifndef directive be recognized (implemented on Wesnoth 1.3.11 and later) | ||
60 | --> | 61 | --> | ||
61 | 62 | | |||
62 | <language name="Wesnoth Markup Language" section="Markup" extensions="*.cfg;*.pbl;*.CFG;*.PBL" version="4" | 63 | <language name="Wesnoth Markup Language" section="Markup" extensions="*.cfg;*.pbl;*.CFG;*.PBL" version="5" | ||
63 | kateversion="5.0" casesensitive="true" author="Zachary Palmer (zep01@bahj.com), modif. by Ignacio Riquelme Morelle (shadowm2006@gmail.com) and Jonathan Schmidt-Dominé (devel@the-user.org)" license="GPL"> | 64 | kateversion="5.0" casesensitive="true" author="Zachary Palmer (zep01@bahj.com), modif. by Ignacio Riquelme Morelle (shadowm2006@gmail.com) and Jonathan Schmidt-Dominé (devel@the-user.org)" license="GPL"> | ||
64 | <highlighting> | 65 | <highlighting> | ||
65 | <list name="alerts_wml_utils"> | 66 | <list name="alerts_wml_utils"> | ||
66 | <item>wmllint</item> | 67 | <item>wmllint</item> | ||
67 | <item>wmlindent</item> | 68 | <item>wmlindent</item> | ||
68 | <item>wmlscope</item> | 69 | <item>wmlscope</item> | ||
69 | <item>po</item> | 70 | <item>po</item> | ||
70 | </list> | 71 | </list> | ||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 92 | <contexts> | |||
118 | 119 | | |||
119 | <context attribute="String" lineEndContext="#stay" name="string"> | 120 | <context attribute="String" lineEndContext="#stay" name="string"> | ||
120 | <DetectChar char=""" attribute="String" context="#pop" /> | 121 | <DetectChar char=""" attribute="String" context="#pop" /> | ||
121 | <DetectChar char="{" attribute="Macro/Include" context="macro" /> | 122 | <DetectChar char="{" attribute="Macro/Include" context="macro" /> | ||
122 | <IncludeRules context="variableSubstitutionRule" /> | 123 | <IncludeRules context="variableSubstitutionRule" /> | ||
123 | <IncludeRules context="##Pango" includeAttrib="false"/> | 124 | <IncludeRules context="##Pango" includeAttrib="false"/> | ||
124 | </context> | 125 | </context> | ||
125 | 126 | | |||
126 | <context attribute="String" name="luastring" lineEndContext="#stay"> | 127 | <context attribute="Normal WML Text" name="luastring" lineEndContext="#stay"> | ||
127 | <Detect2Chars char=">" char1=">" attribute="String" context="#pop" endRegion="wml_lua" /> | 128 | <Detect2Chars char=">" char1=">" attribute="String" context="#pop" endRegion="wml_lua" /> | ||
128 | <IncludeRules context="##Lua" includeAttrib="true"/> | 129 | <IncludeRules context="Normal##Lua" includeAttrib="true"/> | ||
129 | </context> | 130 | </context> | ||
130 | 131 | | |||
131 | <context attribute="Macro String" name="luamacrostring" lineEndContext="#stay"> | 132 | <context attribute="Normal WML Text" name="luamacrostring" lineEndContext="#stay"> | ||
132 | <Detect2Chars char=">" char1=">" attribute="Macro String" context="#pop" endRegion="wml_lua" /> | 133 | <Detect2Chars char=">" char1=">" attribute="Macro String" context="#pop" endRegion="wml_lua" /> | ||
133 | <IncludeRules context="##Lua" includeAttrib="true"/> | 134 | <IncludeRules context="Normal##Lua" includeAttrib="true"/> | ||
134 | </context> | 135 | </context> | ||
135 | 136 | | |||
136 | <context attribute="Comment" lineEndContext="#pop" name="comment"> | 137 | <context attribute="Comment" lineEndContext="#pop" name="comment"> | ||
137 | <keyword attribute="Maintenance script statement" context="#stay" String="alerts_wml_utils" /> | 138 | <keyword attribute="Maintenance script statement" context="#stay" String="alerts_wml_utils" /> | ||
138 | <IncludeRules context="##Alerts" /> | 139 | <IncludeRules context="##Alerts" /> | ||
139 | </context> | 140 | </context> | ||
140 | 141 | | |||
141 | <context attribute="Macro/Include" lineEndContext="#stay" name="macro"> | 142 | <context attribute="Macro/Include" lineEndContext="#stay" name="macro"> | ||
▲ Show 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
191 | </contexts> | 192 | </contexts> | ||
192 | <itemDatas> | 193 | <itemDatas> | ||
193 | <itemData name="Normal WML Text" defStyleNum="dsNormal" /> | 194 | <itemData name="Normal WML Text" defStyleNum="dsNormal" /> | ||
194 | <itemData name="Maintenance script statement" defStyleNum="dsAlert"/> | 195 | <itemData name="Maintenance script statement" defStyleNum="dsAlert"/> | ||
195 | <itemData name="String" defStyleNum="dsString" /> | 196 | <itemData name="String" defStyleNum="dsString" /> | ||
196 | <itemData name="Comment" defStyleNum="dsComment" /> | 197 | <itemData name="Comment" defStyleNum="dsComment" /> | ||
197 | <itemData name="Macro/Include" defStyleNum="dsFunction" /> | 198 | <itemData name="Macro/Include" defStyleNum="dsFunction" /> | ||
198 | <itemData name="WML Node" defStyleNum="dsKeyword" /> | 199 | <itemData name="WML Node" defStyleNum="dsKeyword" /> | ||
199 | <itemData name="WML Attribute" defStyleNum="dsDataType" /> | 200 | <itemData name="WML Attribute" defStyleNum="dsAttribute" /> | ||
200 | <itemData name="Preprocessor" defStyleNum="dsOthers" /> | 201 | <itemData name="Preprocessor" defStyleNum="dsPreprocessor" /> | ||
201 | <itemData name="Error" defStyleNum="dsError" /> | 202 | <itemData name="Error" defStyleNum="dsError" /> | ||
202 | <itemData name="Macro String" defStyleNum="dsChar" /> | 203 | <itemData name="Macro String" defStyleNum="dsChar" /> | ||
203 | <itemData name="Variable Substitution" defStyleNum="dsDecVal" /> | 204 | <itemData name="Variable Substitution" defStyleNum="dsDecVal" /> | ||
204 | <itemData name="Variable Subscript" defStyleNum="dsBaseN" /> | 205 | <itemData name="Variable Subscript" defStyleNum="dsBaseN" /> | ||
205 | </itemDatas> | 206 | </itemDatas> | ||
206 | </highlighting> | 207 | </highlighting> | ||
207 | <general> | 208 | <general> | ||
208 | <comments> | 209 | <comments> | ||
209 | <comment name="singleLine" start="#"/> | 210 | <comment name="singleLine" start="#"/> | ||
210 | </comments> | 211 | </comments> | ||
211 | <keywords casesensitive="1"/> | 212 | <keywords casesensitive="1"/> | ||
212 | </general> | 213 | </general> | ||
213 | </language> | 214 | </language> |