Damson/assets/syntax/step.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.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="STEP" version="1" kateversion="5.62" section="3D" extensions="*.stp;*.step;*.ifc" mimetype="model/step" author="Volker Krause ([email protected])" license="MIT"><highlighting><list name="header"><item>FILE_DESCRIPTION</item><item>FILE_NAME</item><item>FILE_POPULATION</item><item>FILE_SCHEMA</item><item>SECTION_CONTEXT</item><item>SECTION_LANGUAGE</item></list><contexts><context name="Normal" attribute="Normal Text"><StringDetect String="ISO-10303-21;" attribute="Preamble" beginRegion="Top"/><StringDetect String="END-ISO-10303-21;" attribute="Preamble" endRegion="Top"/><StringDetect String="HEADER;" attribute="Keyword" context="Header" beginRegion="Header"/><StringDetect String="DATA;" attribute="Keyword" context="Data" beginRegion="Data"/><StringDetect String="/*" attribute="Comment" context="Comment"/></context><context name="Comment" attribute="Comment"><IncludeRules context="##Comments"/><StringDetect String="*/" attribute="Comment" context="#pop"/></context><context name="EncodedString" attribute="String Encoded"><StringDetect String="\X0\" attribute="String Encoded" context="#pop"/></context><context name="String" attribute="String"><LineContinue attribute="String"/><StringDetect String="''" attribute="String Encoded"/><DetectChar char="'" attribute="String" context="#pop"/><StringDetect String="\X2\" attribute="String Encoded" context="EncodedString"/><StringDetect String="\X4\" attribute="String Encoded" context="EncodedString"/></context><context name="Data" attribute="Normal Text"><StringDetect String="ENDSEC;" attribute="Keyword" context="#pop" endRegion="Data"/><Float attribute="Float"/><Int attribute="Decimal"/><AnyChar String="$*" attribute="Operator"/><DetectChar char="'" attribute="String" context="String"/><StringDetect String="/*" attribute="Comment" context="Comment"/><RegExpr String="#\d+" attribute="Instance"/><RegExpr String="\.[A-Z][A-Z\d]*\." attribute="Enum"/><RegExpr String='"[0-3][0-9A-F]+"' attribute="Binary"/></context><context name="Header" attribute="Normal Text"><StringDetect String="ENDSEC;" attribute="Keyword" context="#pop" endRegion="Header"/><keyword String="header" attribute="Header"/><Float attribute="Float"/><Int attribute="Decimal"/><DetectChar char="'" attribute="String" context="String"/><StringDetect String="/*" attribute="Comment" context="Comment"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Binary" defStyleNum="dsBaseN"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Encoded" defStyleNum="dsSpecialChar" spellChecking="0"/><itemData name="Instance" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Enum" defStyleNum="dsConstant" spellChecking="0"/><itemData name="Operator" defStyleNum="dsOperator" spellChecking="0"/><itemData name="Preamble" defStyleNum="dsPreprocessor" spellChecking="0"/><itemData name="Header" defStyleNum="dsBuiltIn" spellChecking="0"/></itemDatas></highlighting></language>