Damson/assets/syntax/innosetup.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
6.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="InnoSetup" section="Other" version="3" kateversion="5.62" extensions="*.iss" author="Michael Hansen" license="MIT"><highlighting><list name="flags"><item>32bit</item><item>64bit</item><item>HKA</item><item>HKCC</item><item>HKCR</item><item>HKCU</item><item>HKLM</item><item>HKU</item><item>admins</item><item>allowunsafefiles</item><item>alwaysoverwrite</item><item>alwaysskipifsameorolder</item><item>authusers</item><item>binary</item><item>checkablealone</item><item>checkedonce</item><item>closeonexit</item><item>comparetimestamp</item><item>confirmoverwrite</item><item>createallsubdirs</item><item>createkeyifdoesntexist</item><item>createonlyiffileexists</item><item>createvalueifdoesntexist</item><item>creatorowner</item><item>deleteafterinstall</item><item>deletekey</item><item>deletevalue</item><item>dirifempty</item><item>disablenouninstallwarning</item><item>dontcloseonexit</item><item>dontcopy</item><item>dontcreatekey</item><item>dontinheritcheck</item><item>dontverifychecksum</item><item>dword</item><item>everyone</item><item>excludefromshowinnewinstall</item><item>exclusive</item><item>expandsz</item><item>external</item><item>files</item><item>filesandordirs</item><item>fixed</item><item>foldershortcut</item><item>fontisnttruetype</item><item>full</item><item>gacinstall</item><item>guests</item><item>hidden</item><item>hidewizard</item><item>ignoreversion</item><item>iscustom</item><item>isreadme</item><item>modify</item><item>networkservice</item><item>nocompression</item><item>noencryption</item><item>noerror</item><item>none</item><item>noregerror</item><item>normal</item><item>notcontentindexed</item><item>nowait</item><item>onlyifdestfileexists</item><item>onlyifdoesntexist</item><item>overwritereadonly</item><item>postinstall</item><item>preservestringtype</item><item>preventpinning</item><item>promptifolder</item><item>qword</item><item>readexec</item><item>readonly</item><item>recursesubdirs</item><item>regserver</item><item>regtypelib</item><item>replacesameversion</item><item>restart</item><item>restartreplace</item><item>runascurrentuser</item><item>runasoriginaluser</item><item>runhidden</item><item>runmaximized</item><item>runminimized</item><item>service</item><item>setnfscompression</item><item>sharedfile</item><item>shellexec</item><item>sign</item><item>signonce</item><item>skipifdoesntexist</item><item>skipifnotsilent</item><item>skipifsilent</item><item>skipifsourcedoesntexist</item><item>solidbreak</item><item>sortfilesbyextension</item><item>sortfilesbyname</item><item>string</item><item>system</item><item>touch</item><item>unchecked</item><item>uninsalwaysuninstall</item><item>uninsclearvalue</item><item>uninsdeleteentry</item><item>uninsdeletekey</item><item>uninsdeletekeyifempty</item><item>uninsdeletesection</item><item>uninsdeletesectionifempty</item><item>uninsdeletevalue</item><item>uninsneveruninstall</item><item>uninsnosharedfileprompt</item><item>uninsremovereadonly</item><item>uninsrestartdelete</item><item>unsetntfscompression</item><item>useapppaths</item><item>users</item><item>waituntilidle</item><item>waituntilterminated</item></list><contexts><context name="Normal" attribute="Normal Text"><IncludeRules context="Section Rules"/></context><context name="Section Rules" attribute="Normal Text"><DetectChar char=";" attribute="Comment" context="Comment" firstNonSpace="1"/><DetectChar char="#" attribute="Preprocessor" context="Preprocessor" firstNonSpace="1"/><StringDetect String="[setup]" attribute="Section" context="Setup Section" beginRegion="Section" endRegion="Section" insensitive="1" firstNonSpace="1"/><StringDetect String="[langoptions]" attribute="Section" context="Setup Section" beginRegion="Section" endRegion="Section" insensitive="1" firstNonSpace="1"/><StringDetect String="[code]" attribute="Section" context="Code Section" beginRegion="Section" endRegion="Section" insensitive="1" firstNonSpace="1"/><RangeDetect char1="]" char="[" attribute="Section" context="Other Section" beginRegion="Section" endRegion="Section" firstNonSpace="1"/></context><context name="Setup Section" attribute="Normal Text"><IncludeRules context="Section Rules"/><RegExpr String="[A-Za-z0-9]+\s*=" attribute="Parameter" context="Value"/></context><context name="String" attribute="String"><StringDetect String='""' attribute="Escape"/><StringDetect String="{{" attribute="Escape"/><DetectChar char='"' attribute="String" context="#pop"/><RegExpr String="{[^{]*}" attribute="Constant"/></context><context name="Value" attribute="Value" lineEndContext="#pop"><DetectChar char='"' attribute="String" context="String"/><StringDetect String="{{" attribute="Escape"/><RegExpr String="{[^{]*}" attribute="Constant"/></context><context name="Code Section" attribute="Normal Text"><IncludeRules context="Section Rules"/><IncludeRules context="##Pascal"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Other Section" attribute="Normal Text"><IncludeRules context="Section Rules"/><RegExpr String="[A-Za-z0-9]+:" attribute="Parameter" context="PropValue"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><DetectChar char='"' attribute="String" context="String"/></context><context name="PropValue" attribute="Value" lineEndContext="#pop"><IncludeRules context="Value"/><DetectChar char=";" attribute="Operator" context="#pop"/><keyword String="flags" attribute="Flag"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Preprocessor" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Section" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Value" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Constant" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Parameter" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Flag" defStyleNum="dsOthers" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Escape" defStyleNum="dsChar"/><itemData name="Comment" defStyleNum="dsComment"/></itemDatas></highlighting><general><comments><comment name="singleLine" start=";"/></comments></general></language>