Damson/assets/syntax/solidity.xml
astar76 11c1a7808b Build the syntax definitions into the app
Highlighting relied on the syntax-highlighting package, so removing it
left every file uncoloured. The 462 definitions now live in assets/syntax
and are compressed into the binary at build time, unpacked per language
when used. User .xml files still add to or replace them, and the licence
each file declares is recorded in assets/syntax/LICENSES.md.

Also moves files to the trash without needing gio.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 20:35:27 -06:00

1 line
No EOL
8.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Solidity" alternativeNames="Sol" section="Sources" version="7" kateversion="5.62" indenter="cstyle" mimetype="" extensions="*.sol" priority="5" author="Robert Kaiser ([email protected])" license="MIT"><highlighting><list name="types"><item>address</item><item>bool</item><item>byte</item><item>bytes</item><item>bytes1</item><item>bytes10</item><item>bytes11</item><item>bytes12</item><item>bytes13</item><item>bytes14</item><item>bytes15</item><item>bytes16</item><item>bytes17</item><item>bytes18</item><item>bytes19</item><item>bytes2</item><item>bytes20</item><item>bytes21</item><item>bytes22</item><item>bytes23</item><item>bytes24</item><item>bytes25</item><item>bytes26</item><item>bytes27</item><item>bytes28</item><item>bytes29</item><item>bytes3</item><item>bytes30</item><item>bytes31</item><item>bytes32</item><item>bytes4</item><item>bytes5</item><item>bytes6</item><item>bytes7</item><item>bytes8</item><item>bytes9</item><item>fixed</item><item>int</item><item>int104</item><item>int112</item><item>int120</item><item>int128</item><item>int136</item><item>int144</item><item>int152</item><item>int16</item><item>int160</item><item>int168</item><item>int176</item><item>int184</item><item>int192</item><item>int200</item><item>int208</item><item>int216</item><item>int224</item><item>int232</item><item>int24</item><item>int240</item><item>int248</item><item>int256</item><item>int32</item><item>int40</item><item>int48</item><item>int56</item><item>int64</item><item>int72</item><item>int8</item><item>int80</item><item>int88</item><item>int96</item><item>mapping</item><item>string</item><item>ufixed</item><item>uint</item><item>uint104</item><item>uint112</item><item>uint120</item><item>uint128</item><item>uint136</item><item>uint144</item><item>uint152</item><item>uint16</item><item>uint160</item><item>uint168</item><item>uint176</item><item>uint184</item><item>uint192</item><item>uint200</item><item>uint208</item><item>uint216</item><item>uint224</item><item>uint232</item><item>uint24</item><item>uint240</item><item>uint248</item><item>uint256</item><item>uint32</item><item>uint40</item><item>uint48</item><item>uint56</item><item>uint64</item><item>uint72</item><item>uint8</item><item>uint80</item><item>uint88</item><item>uint96</item></list><list name="units"><item>days</item><item>ether</item><item>finney</item><item>hours</item><item>minutes</item><item>seconds</item><item>szabo</item><item>weeks</item><item>wei</item></list><list name="globals"><item>abi</item><item>addmod</item><item>assert</item><item>block</item><item>blockhash</item><item>ecrecover</item><item>gasleft</item><item>keccak256</item><item>log0</item><item>log1</item><item>log2</item><item>log3</item><item>log4</item><item>msg</item><item>mulmod</item><item>now</item><item>require</item><item>revert</item><item>ripemd160</item><item>selfdestruct</item><item>sha256</item><item>super</item><item>this</item><item>tx</item><item>type</item></list><list name="keywords"><item>as</item><item>calldata</item><item>constant</item><item>delete</item><item>enum</item><item>event</item><item>external</item><item>false</item><item>from</item><item>indexed</item><item>internal</item><item>is</item><item>memory</item><item>new</item><item>payable</item><item>private</item><item>public</item><item>pure</item><item>returns</item><item>storage</item><item>struct</item><item>true</item><item>using</item><item>view</item></list><list name="controlstructures"><item>assembly</item><item>break</item><item>constructor</item><item>continue</item><item>contract</item><item>do</item><item>else</item><item>emit</item><item>for</item><item>function</item><item>if</item><item>import</item><item>library</item><item>modifier</item><item>return</item><item>while</item></list><list name="reserved"><item>abstract</item><item>after</item><item>alias</item><item>apply</item><item>auto</item><item>case</item><item>catch</item><item>copyof</item><item>default</item><item>define</item><item>final</item><item>immutable</item><item>implements</item><item>in</item><item>inline</item><item>let</item><item>macro</item><item>match</item><item>mutable</item><item>null</item><item>of</item><item>override</item><item>partial</item><item>promise</item><item>reference</item><item>relocatable</item><item>sealed</item><item>sizeof</item><item>static</item><item>supports</item><item>switch</item><item>try</item><item>typedef</item><item>typeof</item><item>unchecked</item></list><contexts><context name="Normal" attribute="Normal Text"><DetectSpaces/><StringDetect String="pragma" attribute="Keyword" context="Pragma" insensitive="1" firstNonSpace="1"/><keyword String="controlstructures" attribute="Control Structures"/><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><keyword String="units" attribute="Unit"/><keyword String="globals" attribute="Built-in"/><keyword String="reserved" attribute="Error"/><DetectIdentifier/><DetectChar char="{" attribute="Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Symbol" endRegion="Brace1"/><HlCHex attribute="Hex"/><Float attribute="Decimal"/><Int attribute="Decimal"/><HlCChar attribute="Char"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="++" attribute="Built-in"/><StringDetect String="--" attribute="Built-in"/><StringDetect String="//" attribute="Comment" context="MatchComment" lookAhead="1"/><StringDetect String="/*" attribute="Comment" context="MatchComment" lookAhead="1"/><AnyChar String=":!%&amp;()+,-/.*&lt;=>?[]|~^;" attribute="Symbol"/></context><context name="MatchComment" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><IncludeRules context="##Doxygen"/><StringDetect String="//" attribute="Comment" context="#pop!Comment Single"/><StringDetect String="/*" attribute="Comment" context="#pop!Comment Multi" beginRegion="Comment"/></context><context name="Comment Multi" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Comment Single" attribute="Comment" lineEndContext="#pop"><LineContinue attribute="Comment"/><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Pragma" attribute="Normal Text" lineEndContext="#pop"><WordDetect String="solidity" attribute="Built-in" context="Pragma Solidity" insensitive="1"/><WordDetect String="experimental" attribute="Built-in" context="Pragma Experimental" insensitive="1"/><RegExpr String="[^\s;]+" attribute="Error" context="#pop"/></context><context name="Pragma Experimental" attribute="Normal Text" lineEndContext="#pop"><WordDetect String="ABIEncoderV2" attribute="Built-in" context="#pop"/><WordDetect String="SMTChecker" attribute="Built-in" context="#pop"/><RegExpr String="[^\s;]+" attribute="Error" context="#pop"/></context><context name="Pragma Solidity" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="[\^\. \-&lt;>=\|\d\w]+" attribute="Normal Text" context="#pop"/><RegExpr String="[^\s;]+" attribute="Error" context="#pop"/></context><context name="String" attribute="String" lineEndContext="#pop"><LineContinue attribute="String"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Control Structures" defStyleNum="dsControlFlow" spellChecking="0"/><itemData name="Symbol" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Built-in" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="Unit" defStyleNum="dsConstant" bold="0" spellChecking="0"/><itemData name="Data Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="String Char" defStyleNum="dsSpecialChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>