Damson/assets/syntax/ssim.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
3.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="IATA SSIM" version="2" kateversion="5.62" section="Other" extensions="*.ssim" author="Volker Krause ([email protected])" license="MIT"><highlighting><contexts><context name="Normal" attribute="Normal Text"><DetectChar char="0" attribute="Comment" context="Comment" column="0"/><AnyChar String="15" attribute="Header" context="Header" column="0"/><DetectChar char="2" attribute="Keyword" context="CarrierRecord" column="0"/><DetectChar char="3" attribute="Keyword" context="FlightLeg" column="0"/><DetectChar char="4" attribute="Keyword" column="0"/></context><context name="CarrierRecord" attribute="Normal Text" lineEndContext="#pop"><AnyChar String="UL" attribute="Time Mode" column="1"/><RegExpr String=".{3}" attribute="Flight Number" column="2"/><RegExpr String="\d\d\S\S\S\d\d" attribute="Departure Time" column="14"/><RegExpr String="\d\d\S\S\S\d\d" attribute="Arrival Time" column="21"/><RegExpr String=".{29}" attribute="String" column="35"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/><StringDetect String="*/" attribute="Comment" context="#pop"/></context><context name="FlightLeg" attribute="Normal Text" lineEndContext="#pop"><RegExpr String="[A-Z]{2}[ A-Z][ \d]{4}" attribute="Flight Number" column="2"/><RegExpr String="\d\d" attribute="Leg Sequence" column="11"/><RegExpr String="\d\d\S\S\S\d\d" attribute="Departure Time" column="14"/><RegExpr String="\d\d\S\S\S\d\d" attribute="Arrival Time" column="21"/><RegExpr String="[A-Z]{3}" attribute="Departure Airport" column="36"/><RegExpr String="[A-Z]{3}" attribute="Arrival Airport" column="54"/><RegExpr String="\d{4}" attribute="Departure Time" column="39"/><RegExpr String="[+-]\d{4}" attribute="Departure Time" column="47"/><RegExpr String=".{2}" attribute="Departure Airport" column="52"/><RegExpr String="\d{4}" attribute="Arrival Time" column="57"/><RegExpr String="[+-]\d{4}" attribute="Arrival Time" column="65"/><RegExpr String=".{2}" attribute="Arrival Airport" column="70"/><RegExpr String="[A-Z0-9]{3}" attribute="Aircraft" column="72"/><RegExpr String=".{20}" attribute="Aircraft Configuration" column="75"/><RegExpr String=".{8}" attribute="Flight Number" column="137"/><RegExpr String=".{20}" attribute="Aircraft Configuration" column="172"/></context><context name="Header" attribute="Header" lineEndContext="#pop"/></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Departure Time" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Arrival Time" defStyleNum="dsString" spellChecking="0"/><itemData name="Departure Airport" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Arrival Airport" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Flight Number" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Leg Sequence" defStyleNum="dsComment" spellChecking="0"/><itemData name="Aircraft" defStyleNum="dsSpecialString" spellChecking="0"/><itemData name="Aircraft Configuration" defStyleNum="dsComment" spellChecking="0"/><itemData name="Header" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Time Mode" defStyleNum="dsWarning"/></itemDatas></highlighting></language>