Damson/assets/syntax/overpassql.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.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Overpass QL" section="Other" version="3" kateversion="5.62" extensions="*.overpassql" author="Volker Krause ([email protected])" license="MIT"><highlighting><list name="listSets"><item>node</item><item>rel</item><item>relation</item><item>way</item></list><list name="listBlockStatements"><item>compare</item><item>complete</item><item>else</item><item>for</item><item>foreach</item><item>if</item><item>retro</item></list><list name="listQueries"><item>convert</item><item>is_in</item><item>local</item><item>make</item><item>out</item><item>timeline</item></list><list name="listFilters"><item>area</item><item>around</item><item>changed</item><item>newer</item><item>pivot</item><item>poly</item><item>uid</item><item>user</item></list><list name="listEvaluators"><item>center</item><item>changeset</item><item>count</item><item>count_distinct_by_role</item><item>count_distinct_members</item><item>count_members</item><item>count_tags</item><item>date</item><item>gcat</item><item>geom</item><item>hull</item><item>id</item><item>is_closed</item><item>is_date</item><item>is_number</item><item>is_tag</item><item>keys</item><item>length</item><item>lrc_union</item><item>lrs_in</item><item>lrs_isect</item><item>lrs_max</item><item>lrs_min</item><item>lstr</item><item>max</item><item>min</item><item>number</item><item>pt</item><item>set</item><item>suffix</item><item>sum</item><item>timestamp</item><item>trace</item><item>type</item><item>version</item></list><list name="listOther"><item>bb</item><item>body</item><item>center</item><item>ids</item><item>meta</item><item>qt</item><item>skel</item></list><contexts><context name="ctxNormal" attribute="Normal"><DetectChar char="(" beginRegion="regionUnion"/><DetectChar char=")" endRegion="regionUnion"/><Float attribute="Float"/><Int attribute="Decimal"/><keyword String="listSets" attribute="Queries"/><keyword String="listBlockStatements" attribute="Keyword"/><keyword String="listQueries" attribute="Queries"/><keyword String="listFilters" attribute="Queries"/><keyword String="listEvaluators" attribute="Evaluators"/><keyword String="listOther" attribute="Evaluators"/><DetectChar char='"' attribute="String" context="ctxString"/><StringDetect String="//" attribute="Comment" context="ctxSingeLineComment"/><StringDetect String="/*" attribute="Comment" context="ctxMultiLineComment" beginRegion="Comment"/><RegExpr String="\b[_A-Za-z][_0-9A-Za-z]*(?=:)" attribute="Named Argument"/><StringDetect String="{{bbox}}" attribute="Overpass Turbo Placeholders"/></context><context name="ctxMultiLineComment" attribute="Comment"><DetectSpaces/><StringDetect String="*/" context="#pop" endRegion="Comment"/><IncludeRules context="##Comments"/></context><context name="ctxSingeLineComment" attribute="Comment" lineEndContext="#pop"><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="ctxString" attribute="String" lineEndContext="#pop"><HlCStringChar attribute="Special Character"/><DetectChar char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal" defStyleNum="dsNormal" spellChecking="0"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Named Argument" defStyleNum="dsVariable" spellChecking="0"/><itemData name="Decimal" defStyleNum="dsDecVal"/><itemData name="Float" defStyleNum="dsFloat"/><itemData name="String" defStyleNum="dsString"/><itemData name="Special Character" defStyleNum="dsChar" spellChecking="0"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Queries" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Evaluators" defStyleNum="dsBuiltIn" spellChecking="0"/><itemData name="Overpass Turbo Placeholders" defStyleNum="dsPreprocessor" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//"/><comment name="multiLine" start="/*" end="*/" region="Comment"/></comments></general></language>