Damson/assets/syntax/email.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.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Email" version="7" kateversion="5.62" extensions="*.eml;*.email;*.emlx;*.mbox;*.mbx" section="Other" mimetype="message/rfc822" casesensitive="0" author="Volker Krause ([email protected])" license="MIT"><highlighting><list name="header-names"><item>Authentication-Results:</item><item>Bcc:</item><item>Cc:</item><item>Comments:</item><item>Content-Description:</item><item>Content-Disposition:</item><item>Content-Transfer-Encoding:</item><item>Content-Type:</item><item>DKIM-Signature:</item><item>Date:</item><item>Delivered-To:</item><item>Errors-To:</item><item>From:</item><item>In-Reply-To:</item><item>Keywords:</item><item>Lines:</item><item>List-Archive:</item><item>List-Help:</item><item>List-Id:</item><item>List-Post:</item><item>List-Subscribe:</item><item>List-Unsubscribe:</item><item>MIME-Version:</item><item>Message-Id:</item><item>Organization:</item><item>Precedence:</item><item>Received-SPF:</item><item>Received:</item><item>References:</item><item>Reply-To:</item><item>Resent-Bcc:</item><item>Resent-Cc:</item><item>Resent-Date:</item><item>Resent-From:</item><item>Resent-Message-Id:</item><item>Resent-Reply-To:</item><item>Resent-Sender:</item><item>Resent-To:</item><item>Return-Path:</item><item>Sender:</item><item>Subject:</item><item>Supersedes:</item><item>To:</item><item>User-Agent:</item></list><contexts><context name="header" attribute="Normal Text" lineEmptyContext="#pop!body-context"><WordDetect String="Subject:" attribute="Common Header" context="header-subject" column="0"/><keyword String="header-names" attribute="Common Header" context="header-structured-content" column="0"/><RegExpr String="^[0-9a-zA-Z-]+:\s" attribute="Other Header" context="header-content" column="0"/></context><context name="body-context" attribute="Normal Text"><RegExpr String="^--[0-9a-zA-Z._=-]{10,}(--)?$" attribute="Content Boundary" context="#pop!header" column="0"/></context><context name="comment-context" attribute="Comment"><DetectChar char="(" attribute="Comment" context="comment-context"/><DetectChar char=")" attribute="Comment" context="#pop"/><IncludeRules context="quoted-pair"/></context><context name="quoted-pair" attribute="Escaped Character"><RegExpr String="\\[\x00-\x7F]" attribute="Escaped Character"/></context><context name="string-context" attribute="String"><IncludeRules context="quoted-pair"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="header-content" attribute="Normal Text" lineEmptyContext="#pop#pop!body-context"><RegExpr String="^\S" context="#pop" column="0" lookAhead="1"/></context><context name="header-structured-content" attribute="Normal Text" lineEmptyContext="#pop#pop!body-context"><RegExpr String="^\S" context="#pop" column="0" lookAhead="1"/><DetectChar char='"' attribute="String" context="string-context"/><DetectChar char="(" attribute="Comment" context="comment-context"/><RegExpr String="&lt;?[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+>?" attribute="Address"/></context><context name="header-subject" attribute="Normal Text" lineEmptyContext="#pop#pop!body-context"><RegExpr String="^\S" context="#pop" column="0" lookAhead="1"/><DetectChar char='"' attribute="String" context="string-context"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Common Header" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="Other Header" defStyleNum="dsFunction" spellChecking="0"/><itemData name="String" defStyleNum="dsString" spellChecking="0"/><itemData name="Address" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment" spellChecking="0"/><itemData name="Escaped Character" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Content Boundary" defStyleNum="dsRegionMarker" spellChecking="0"/></itemDatas></highlighting><general><keywords casesensitive="0" weakDeliminator=":-"/></general></language>