Damson/assets/syntax/lrc.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
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="LRC Lyrics" version="1" kateversion="6.22" author="Gary Wang" section="Other" extensions="*.lrc" mimetype="text/x-lrc" license="MIT"><highlighting><contexts><context name="Normal" attribute="Normal Text"><RegExpr String="\[(?=[A-Za-z]+\s*:)" attribute="Meta Tag" context="#pop!Metadata" firstNonSpace="1" lookAhead="1"/><RegExpr String="\[(?=\d{1,3}:[0-5]\d\.\d{2,3}\])" attribute="Timestamp" context="#pop!Timestamp" lookAhead="1"/><RegExpr String="&lt;(?=\d{1,3}:[0-5]\d\.\d{2,3}>)" attribute="Word Timestamp" context="#pop!WordTimestamp" lookAhead="1"/><DetectIdentifier/></context><context name="MetaValue" attribute="Normal Text" lineEndContext="#pop"><DetectChar char=":" attribute="Meta Separator"/><RegExpr String="[^\]\r\n]*" attribute="Meta Value"/><DetectChar char="]" attribute="Meta Bracket" context="#pop"/></context><context name="Metadata" attribute="Normal Text" lineEndContext="#pop"><DetectChar char="[" attribute="Meta Bracket"/><RegExpr String="[A-Za-z]+(?=\s*:)" attribute="Meta Tag" context="#pop!MetaValue"/></context><context name="Timestamp" attribute="Timestamp" lineEndContext="#pop"><DetectChar char="[" attribute="Timestamp Bracket"/><RegExpr String="\d{1,3}:[0-5]\d\.\d{2,3}" attribute="Timestamp"/><DetectChar char="]" attribute="Timestamp Bracket" context="#pop"/></context><context name="WordTimestamp" attribute="Word Timestamp" lineEndContext="#pop"><DetectChar char="&lt;" attribute="Word Timestamp Bracket"/><RegExpr String="\d{1,3}:[0-5]\d\.\d{2,3}" attribute="Word Timestamp"/><DetectChar char=">" attribute="Word Timestamp Bracket" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Timestamp" defStyleNum="dsComment" spellChecking="0"/><itemData name="Timestamp Bracket" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Word Timestamp" defStyleNum="dsComment" spellChecking="0"/><itemData name="Word Timestamp Bracket" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Meta Bracket" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Meta Tag" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Meta Separator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Meta Value" defStyleNum="dsString" spellChecking="0"/></itemDatas></highlighting></language>