Damson/assets/syntax/pig.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
5.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Pig" version="10" kateversion="5.62" section="Scripts" extensions="*.pig" mimetype="application/x-pig;text/x-pig" casesensitive="0" author="Johannes Schwenk, [email protected]" license="GPL"><highlighting><list name="keywords"><item>all</item><item>any</item><item>arrange</item><item>as</item><item>asc</item><item>by</item><item>cache</item><item>cogroup</item><item>continuously</item><item>cross</item><item>define</item><item>desc</item><item>distinct</item><item>eval</item><item>filter</item><item>foreach</item><item>full</item><item>generate</item><item>group</item><item>hours</item><item>if</item><item>inner</item><item>input</item><item>into</item><item>join</item><item>left</item><item>load</item><item>minutes</item><item>null</item><item>onschema</item><item>order</item><item>outer</item><item>output</item><item>parallel</item><item>returns</item><item>right</item><item>seconds</item><item>ship</item><item>split</item><item>store</item><item>stream</item><item>through</item><item>tuples</item><item>union</item><item>using</item><item>window</item></list><list name="grunts"><item>cat</item><item>cd</item><item>copyFromLocal</item><item>copyToLocal</item><item>cp</item><item>define</item><item>describe</item><item>dump</item><item>exec</item><item>explain</item><item>help</item><item>illustrate</item><item>import</item><item>kill</item><item>ls</item><item>mkdir</item><item>mv</item><item>pwd</item><item>quit</item><item>register</item><item>rm</item><item>set</item></list><list name="types"><item>bag</item><item>bytearray</item><item>chararray</item><item>double</item><item>float</item><item>int</item><item>long</item><item>map</item><item>tuple</item></list><list name="operators"><item>and</item><item>eq</item><item>gt</item><item>gte</item><item>is</item><item>lt</item><item>lte</item><item>matches</item><item>neq</item><item>not</item><item>or</item></list><list name="functions"><item>BinStorage</item><item>IsEmpty</item><item>PigDump</item><item>PigStorage</item><item>TextLoader</item><item>arity</item><item>avg</item><item>concat</item><item>count</item><item>diff</item><item>flatten</item><item>max</item><item>min</item><item>size</item><item>sum</item><item>tokenize</item></list><contexts><context name="Normal" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="operators" attribute="Operator"/><keyword String="types" attribute="Type"/><keyword String="grunts" attribute="Grunt"/><keyword String="functions" attribute="Function"/><RegExpr String="%(?:declare|default)" attribute="Statement"/><Float attribute="Float"/><HlCHex attribute="Hex"/><HlCOct attribute="Octal"/><Int attribute="Int" context="Int Suffixes"/><StringDetect String="/*" attribute="Comment" context="Multiline comment" beginRegion="Comment"/><DetectChar char="'" attribute="String" context="Single A-string"/><StringDetect String="--" attribute="Comment" context="Dash comment"/><IncludeRules context="Parameter variable"/></context><context name="Parameter variable" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><RegExpr String="[$][a-zA-Z0-9_]+" attribute="Parameter"/></context><context name="Dash comment" attribute="Comment" lineEndContext="#pop"><LineContinue attribute="Comment"/><DetectSpaces/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Int Suffixes" attribute="Int" fallthroughContext="#pop" lineEndContext="#pop"><AnyChar String="Ll" attribute="Int" context="#pop"/></context><context name="Multiline comment" attribute="Comment"><DetectSpaces/><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier/></context><context name="Single A-string" attribute="String" lineEndContext="#pop"><IncludeRules context="Parameter variable"/><HlCStringChar attribute="String Char"/><DetectChar char="'" attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Statement" defStyleNum="dsOthers" bold="1" spellChecking="0"/><itemData name="Operator" defStyleNum="dsNormal" bold="1" spellChecking="0"/><itemData name="Type" defStyleNum="dsDataType" spellChecking="0"/><itemData name="Grunt" defStyleNum="dsOthers" color="#BA8200" selColor="#FFFFFF" bold="1" italic="0" spellChecking="0"/><itemData name="Function" defStyleNum="dsDataType" bold="1" spellChecking="0"/><itemData name="Float" defStyleNum="dsFloat" spellChecking="0"/><itemData name="Int" defStyleNum="dsDecVal" spellChecking="0"/><itemData name="Hex" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Octal" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="String" defStyleNum="dsString"/><itemData name="String Char" defStyleNum="dsSpecialChar"/><itemData name="Parameter" defStyleNum="dsOthers" color="#25A000" selColor="#FFFFFF" spellChecking="0"/></itemDatas></highlighting><general><folding indentationsensitive="1"/><emptyLines><emptyLine regexpr="(?:\s+|\s*#.*)"/></emptyLines><comments><comment name="singleLine" start="--" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="0"/></general></language>