Damson/assets/syntax/pike.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
4.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Pike" version="4" kateversion="5.62" section="Scripts" extensions="*.pike" mimetype="application/x-pike;text/x-pike" author="Paul Pogonyshev" license=""><highlighting><list name="keywords"><item>break</item><item>case</item><item>class</item><item>continue</item><item>default</item><item>do</item><item>else</item><item>for</item><item>foreach</item><item>if</item><item>return</item><item>switch</item><item>while</item></list><list name="types"><item>array</item><item>float</item><item>function</item><item>int</item><item>mapping</item><item>mixed</item><item>multiset></item><item>object</item><item>program</item><item>static</item><item>string</item><item>void</item></list><list name="builtins"><item>catch</item><item>gauge</item><item>sscanf</item><item>typeof</item></list><contexts><context name="Normal" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="types" attribute="Data Type"/><keyword String="builtins" attribute="Builtin Function"/><RegExpr String="`([\+\-\*/%~&amp;\|^]|[!=&lt;>]=|&lt;&lt;?|>>?|(\[\]|->)=?)" attribute="Builtin Function"/><Float attribute="Float"/><RegExpr String="0[bB][01]+" attribute="Binary"/><HlCOct attribute="Octal"/><HlCHex attribute="Hex"/><Int attribute="Decimal"/><HlCChar attribute="Char"/><DetectChar char="{" attribute="Normal Text" beginRegion="Brace"/><DetectChar char="}" attribute="Normal Text" endRegion="Brace"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="//" attribute="Comment" context="Line Comment"/><StringDetect String="#!" attribute="Comment" context="Line Comment"/><StringDetect String="/*" attribute="Comment" context="Block Comment" beginRegion="Comment"/><RegExpr String="#\s*if\s+0" attribute="Preprocessor" context="Outscoped" beginRegion="Outscoped" firstNonSpace="1"/><DetectChar char="#" attribute="Preprocessor" context="Preprocessor" firstNonSpace="1"/></context><context name="Block Comment" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Line Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="Outscoped intern" attribute="Comment"><StringDetect String="/*" attribute="Comment" context="Block Comment" beginRegion="Comment"/><RegExpr String="#\s*if" attribute="Comment" context="Outscoped intern" beginRegion="Outscoped" firstNonSpace="1"/><RegExpr String="#\s*endif" attribute="Comment" context="#pop" endRegion="Outscoped" firstNonSpace="1"/></context><context name="Outscoped" attribute="Comment"><StringDetect String="/*" attribute="Comment" context="Block Comment" beginRegion="Comment"/><RegExpr String="#\s*if" attribute="Comment" context="Outscoped intern" beginRegion="Outscoped" firstNonSpace="1"/><RegExpr String="#\s*(endif|elif|else)" attribute="Preprocessor" context="#pop" endRegion="Outscoped" firstNonSpace="1"/><IncludeRules context="##Comments"/></context><context name="Preprocessor" attribute="Preprocessor" lineEndContext="#pop"><RangeDetect char1='"' char='"' attribute="Preprocessor Lib"/><RangeDetect char1=">" char="&lt;" attribute="Preprocessor Lib"/><StringDetect String="//" attribute="Comment" context="Line Comment"/><StringDetect String="/*" attribute="Comment" context="Block Comment" beginRegion="Comment"/><LineContinue attribute="Preprocessor"/></context><context name="String" attribute="String" lineEndContext="#pop"><RegExpr String="\\d[0-9]+" attribute="String Char"/><HlCStringChar attribute="String Char"/><DetectChar char='"' attribute="String" context="#pop"/><LineContinue attribute="String"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Builtin Function" defStyleNum="dsFunction"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Hex" defStyleNum="dsBaseN"/><itemData name="Octal" defStyleNum="dsBaseN"/><itemData name="Binary" defStyleNum="dsBaseN"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Preprocessor" defStyleNum="dsOthers"/><itemData name="Preprocessor Lib" defStyleNum="dsString"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>