Damson/assets/syntax/bibtex.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="BibTeX" version="5" kateversion="5.62" extensions="*.bib" section="Markup" mimetype="text/x-bib" author="Jeroen Wijnhout ([email protected])+Thomas Braun ([email protected])" license="LGPL"><highlighting><list name="kw_entry"><item>@article</item><item>@book</item><item>@booklet</item><item>@collection</item><item>@company</item><item>@conference</item><item>@electronic</item><item>@inbook</item><item>@incollection</item><item>@inproceedings</item><item>@manual</item><item>@mastersthesis</item><item>@misc</item><item>@online</item><item>@patent</item><item>@periodical</item><item>@person</item><item>@phdthesis</item><item>@place</item><item>@proceedings</item><item>@report</item><item>@set</item><item>@techreport</item><item>@thesis</item><item>@unpublished</item><item>@www</item></list><contexts><context name="Normal" attribute="Comment"><keyword String="kw_entry" attribute="Entry" context="Entry"/><StringDetect String="@string" attribute="Command" context="StringCommand" insensitive="1"/><StringDetect String="@preamble" attribute="Command" context="PreambleCommand" insensitive="1"/><StringDetect String="@comment" attribute="Comment" insensitive="1"/></context><context name="CurlyBracket" attribute="Normal Text"><DetectChar char="{" context="CurlyBracket"/><RegExpr String="\\([a-zA-Z@]+|[^ ])" attribute="LatexCommand"/><LineContinue char="}" context="#pop#pop"/><DetectChar char="}" context="#pop"/></context><context name="Entry" attribute="Normal Text"><DetectChar char="{" beginRegion="block"/><RegExpr String="[a-zA-Z0-9_@\\-\\:]+" attribute="Ref Key"/><DetectChar char="," context="Field"/><DetectChar char="}" attribute="Normal Text" context="#pop" endRegion="block"/></context><context name="Field" attribute="Normal Text"><RegExpr String="[a-zA-Z0-9\-_\.]+" attribute="Field" firstNonSpace="1"/><DetectSpaces/><DetectChar char="="/><DetectChar char="{" context="CurlyBracket"/><DetectChar char="}" context="#pop" lookAhead="1"/><DetectChar char='"' attribute="Normal Text" context="QuotedText"/><AnyChar String=",#"/><RegExpr String="[0-9]+"/><RegExpr String="[a-zA-Z0-9\-]+" attribute="String"/><RegExpr String="." attribute="Error"/></context><context name="PreambleCommand" attribute="Normal Text" fallthroughContext="#pop"><DetectChar char="{" context="CurlyBracket"/></context><context name="QuotedText" attribute="String"><DetectChar char='"' attribute="Normal Text" context="#pop"/><RegExpr String="\\([a-zA-Z@]+|[^ ])" attribute="LatexCommand"/></context><context name="StringCommand" attribute="Normal Text" fallthroughContext="#pop"><DetectChar char="{" context="CurlyBracket"/><RegExpr String="[a-zA-Z0-9\-]+" attribute="String" context="CurlyBracket"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Entry" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Command" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Field" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Ref Key" defStyleNum="dsOthers" spellChecking="0"/><itemData name="LatexCommand" defStyleNum="dsChar" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment" spellChecking="0"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/></itemDatas></highlighting><general><keywords casesensitive="0" weakDeliminator="\" wordWrapDeliminator=",{}[]"/></general></language>