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

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Bitbake" section="Sources" version="12" kateversion="5.79" extensions="*.bb;*.bbappend;*.bbclass;*.inc" license="GPL" author="Ivan Koveshnikov"><highlighting><list name="keywords"><item>after</item><item>bareclone</item><item>before</item><item>branch</item><item>cat</item><item>cp</item><item>done</item><item>fi</item><item>for</item><item>if</item><item>ln</item><item>name</item><item>protocol</item><item>python</item><item>rm</item><item>then</item></list><list name="oe_functions"><item>do_bootimg</item><item>do_build</item><item>do_bundle_initramfs</item><item>do_checkuri</item><item>do_checkuriall</item><item>do_clean</item><item>do_cleanall</item><item>do_cleansstate</item><item>do_compile</item><item>do_compile_append</item><item>do_compile_kernelmodules</item><item>do_compile_prepend</item><item>do_compile_ptest_base</item><item>do_configure</item><item>do_configure_append</item><item>do_configure_prepend</item><item>do_configure_ptest_base</item><item>do_deploy</item><item>do_devshell</item><item>do_diffconfig</item><item>do_fetch</item><item>do_fetchall</item><item>do_generate_qt_config_file</item><item>do_install</item><item>do_install_append</item><item>do_install_prepend</item><item>do_install_ptest_base</item><item>do_kernel_checkout</item><item>do_kernel_configcheck</item><item>do_kernel_configme</item><item>do_kernel_link_vmlinux</item><item>do_listtasks</item><item>do_menuconfig</item><item>do_package</item><item>do_package_index</item><item>do_package_qa</item><item>do_package_write_deb</item><item>do_package_write_ipk</item><item>do_package_write_rpm</item><item>do_package_write_tar</item><item>do_packagedata</item><item>do_patch</item><item>do_populate_lic</item><item>do_populate_sdk</item><item>do_populate_sysroot</item><item>do_rm_work</item><item>do_rm_work_all</item><item>do_rootfs</item><item>do_savedefconfig</item><item>do_sizecheck</item><item>do_spdx</item><item>do_strip</item><item>do_testimage</item><item>do_testimage_auto</item><item>do_uboot_mkimage</item><item>do_unpack</item><item>do_validate_branches</item><item>do_vmdkimg</item><item>export</item><item>install</item><item>kernel_configme</item><item>oe_runmake</item><item>validate_branches</item></list><list name="dependencies"><item>EXPORT_FUNCTIONS</item><item>addhandler</item><item>addtask</item><item>deltask</item><item>include</item><item>inherit</item><item>require</item></list><contexts><context name="Normal Text" attribute="Normal Text" lineEndContext="#pop"><DetectSpaces/><DetectChar char="#" context="bbComment"/><RegExpr String="^\s*python\s+[A-Za-z_:][A-Za-z0-9_:#%${}@-]*\s*\(\s*\)" context="pbfunction" column="0" lookAhead="1"/><RegExpr String="^def\s+[A-Za-z_:][A-Za-z0-9_:#%${}@-]*\s*\(.*\)\s*:(?=$|\s)" context="pfunction" column="0" minimal="1" lookAhead="1"/><RegExpr String="^\s*[A-Za-z_:][A-Za-z0-9_:#%${}@-]*\s*\(\s*\)" context="function" column="0" lookAhead="1"/><IncludeRules context="keywords"/><DetectChar char='"' attribute="String" context="bbString"/><RegExpr String="\$\{[A-Za-z0-9_-]+\}" attribute="Variable"/><RegExpr String="(?:[A-Z]+)[0-9_]*" attribute="Keyword"/></context><context name="keywords" attribute="Normal Text"><keyword String="keywords" attribute="Keyword"/><keyword String="oe_functions" attribute="OEFunction"/><keyword String="dependencies" attribute="Dependency"/></context><context name="python" attribute="Normal Text"><DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="function"/><RegExpr String="^\w" context="#pop#pop" endRegion="function" column="0" lookAhead="1"/><IncludeRules context="##Python"/></context><context name="bash" attribute="Normal Text" fallthroughContext="Command##Bash"><DetectChar char="}" attribute="Keyword" context="#pop#pop" endRegion="function"/><IncludeRules context="##Bash"/></context><context name="bbComment" attribute="Comment" lineEndContext="#pop"><IncludeRules context="##Comments"/></context><context name="bbError" attribute="Error"><DetectChar char='"' attribute="Error" context="#pop"/></context><context name="bbString" attribute="String" lineEndContext="bbError"><keyword String="keywords" attribute="Keyword"/><DetectChar char='"' attribute="String" context="#pop"/><LineContinue attribute="Escape"/><AnyChar String="=|;," attribute="Normal Text"/><RegExpr String='\$\{@[a-zA-Z0-9._\-\(\), "/]+\}' attribute="BBFunction"/><RegExpr String="\$\{[A-Za-z0-9_-]+\}" attribute="Variable"/></context><context name="function" attribute="Normal Text"><IncludeRules context="keywords"/><RegExpr String="[A-Za-z_:][A-Za-z0-9_:#%${}@-]*\s*\(\s*\)" attribute="Function"/><DetectChar char="{" context="bash" beginRegion="function"/></context><context name="pbfunction" attribute="Normal Text"><IncludeRules context="keywords"/><RegExpr String="[A-Za-z_:][A-Za-z0-9_:#%${}@-]*\s*\(\s*\)" attribute="Function"/><DetectChar char="{" context="python" beginRegion="function"/></context><context name="pfunction" attribute="Normal Text" lineEndContext="python"><WordDetect String="def" attribute="Keyword"/><StringDetect String="):" context="python" beginRegion="function"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal" spellChecking="0"/><itemData name="String" defStyleNum="dsString"/><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/><itemData name="Variable" defStyleNum="dsOthers" spellChecking="0" color="darkred"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Dependency" defStyleNum="dsDataType" spellChecking="0"/><itemData name="BBFunction" defStyleNum="dsOthers" spellChecking="0" color="darkblue"/><itemData name="OEFunction" defStyleNum="dsBaseN" spellChecking="0"/><itemData name="Function" defStyleNum="dsFunction" spellChecking="0"/><itemData name="Escape" defStyleNum="dsOthers" spellChecking="0" color="grey"/><itemData name="Error" defStyleNum="dsError" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="#"/></comments></general></language>