Damson/assets/syntax/cg.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
6.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Cg" section="Sources" extensions="*.cg;*.cgfx" mimetype="text/x-cgsrc" version="10" kateversion="5.62" author="Florian Schanda ([email protected])" license="LGPL"><highlighting><list name="binding"><item>BCOL0</item><item>BCOL1</item><item>BINORMAL</item><item>BLENDINDICES</item><item>BLENDWEIGHT</item><item>COLOR</item><item>COLOR0</item><item>COLOR1</item><item>COLOR2</item><item>COLOR3</item><item>DEPTH</item><item>FACE</item><item>FOG</item><item>FOGCOORD</item><item>NORMAL</item><item>POSITION</item><item>PSIZE</item><item>TANGENT</item><item>TESSFACTOR</item><item>TEXCOORD0</item><item>TEXCOORD1</item><item>TEXCOORD10</item><item>TEXCOORD11</item><item>TEXCOORD12</item><item>TEXCOORD13</item><item>TEXCOORD14</item><item>TEXCOORD15</item><item>TEXCOORD2</item><item>TEXCOORD3</item><item>TEXCOORD4</item><item>TEXCOORD5</item><item>TEXCOORD6</item><item>TEXCOORD7</item><item>TEXCOORD8</item><item>TEXCOORD9</item><item>TEXUNIT0</item><item>TEXUNIT1</item><item>TEXUNIT10</item><item>TEXUNIT11</item><item>TEXUNIT12</item><item>TEXUNIT13</item><item>TEXUNIT14</item><item>TEXUNIT15</item><item>TEXUNIT2</item><item>TEXUNIT3</item><item>TEXUNIT4</item><item>TEXUNIT5</item><item>TEXUNIT6</item><item>TEXUNIT7</item><item>TEXUNIT8</item><item>TEXUNIT9</item><item>WPOS</item></list><list name="keywords"><item>discard</item><item>do</item><item>else</item><item>false</item><item>for</item><item>if</item><item>return</item><item>static</item><item>struct</item><item>true</item><item>typedef</item><item>while</item></list><list name="types"><item>bool</item><item>const</item><item>fixed</item><item>float</item><item>half</item><item>in</item><item>inout</item><item>int</item><item>out</item><item>packed</item><item>sampler</item><item>sampler1D</item><item>sampler2D</item><item>sampler3D</item><item>samplerCUBE</item><item>samplerRECT</item><item>uniform</item><item>void</item></list><list name="attention"><item>BUG</item><item>FIXME</item><item>TODO</item></list><list name="stdlib"><item>abs</item><item>acos</item><item>all</item><item>any</item><item>asin</item><item>atan</item><item>atan2</item><item>ceil</item><item>clamp</item><item>cos</item><item>cosh</item><item>cross</item><item>ddx</item><item>ddy</item><item>debug</item><item>degrees</item><item>determinant</item><item>distance</item><item>dot</item><item>exp</item><item>exp2</item><item>faceforward</item><item>floor</item><item>fmod</item><item>frac</item><item>frexp</item><item>isfinite</item><item>isinf</item><item>isnan</item><item>ldexp</item><item>length</item><item>lerp</item><item>lit</item><item>log</item><item>log10</item><item>log2</item><item>max</item><item>min</item><item>modf</item><item>mul</item><item>noise</item><item>normalize</item><item>pack_2half</item><item>pack_2ushort</item><item>pack_4byte</item><item>pack_4ubyte</item><item>pow</item><item>radians</item><item>reflect</item><item>refract</item><item>round</item><item>rsqrt</item><item>saturate</item><item>sign</item><item>sin</item><item>sincos</item><item>sinh</item><item>smoothstep</item><item>sqrt</item><item>step</item><item>tan</item><item>tanh</item><item>tex1D</item><item>tex1Dproj</item><item>tex2D</item><item>tex2Dproj</item><item>tex3D</item><item>tex3Dproj</item><item>texCUBE</item><item>texCUBEproj</item><item>texRECT</item><item>texRECTproj</item><item>transpose</item><item>unpack_2half</item><item>unpack_2ushort</item><item>unpack_4byte</item><item>unpack_4ubyte</item></list><list name="stdstruct"><item>fragout</item><item>fragout_float</item></list><contexts><context name="Normal" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="binding" attribute="Binding"/><keyword String="attention" attribute="Alert"/><DetectChar char="{" attribute="Symbol" beginRegion="Brace1"/><DetectChar char="}" attribute="Symbol" endRegion="Brace1"/><RegExpr String="(float|half|fixed|bool|int)[1234](x[1234])?" attribute="Data Type"/><keyword String="types" attribute="Data Type"/><keyword String="stdstruct" attribute="Data Type"/><RegExpr String="[0123456789]*+[.][0123456789]++h" attribute="Half"/><RegExpr String="[0123456789]*+[.][0123456789]++x" attribute="Fixed"/><RegExpr String="[0123456789]*+[.][0123456789]++f?" attribute="Float"/><Int attribute="Decimal"/><StringDetect String="//" attribute="Comment" context="Commentar 1"/><StringDetect String="/*" attribute="Comment" context="Commentar 2" beginRegion="Comment"/><keyword String="stdlib" attribute="StdFunction"/><RegExpr String="\b[_\w][_\w\d]*(?=[\s]*[(])" attribute="Function"/><RegExpr String="[.][rgbaxyzw]+(?=[\s/*-+&lt;>])" attribute="Swizzle"/><DetectChar char="." attribute="Symbol" context="Member"/><AnyChar String=":!%&amp;()+,-/*&lt;=>?[]|~^;" attribute="Symbol"/></context><context name="Commentar 1" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="Commentar 2" attribute="Comment"><StringDetect String="*/" attribute="Comment" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="Member" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><RegExpr String="\b[_\w][_\w\d]*(?=[\s]*)" attribute="Function" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Binding" defStyleNum="dsKeyword"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Function" defStyleNum="dsFunction" bold="0"/><itemData name="StdFunction" defStyleNum="dsBuiltIn" bold="1"/><itemData name="Data Type" defStyleNum="dsDataType"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="Half" defStyleNum="dsFloat"/><itemData name="Fixed" defStyleNum="dsFloat"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="Swizzle" defStyleNum="dsNormal" bold="1"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Alert" defStyleNum="dsAlert"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments><keywords casesensitive="1"/></general></language>