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]>
This commit is contained in:
parent
5674954693
commit
11c1a7808b
1 changed files with 1242 additions and 72 deletions
1
assets/syntax/java-module.xml
Normal file
1
assets/syntax/java-module.xml
Normal file
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="Java Module" version="3" kateversion="5.79" section="Sources" extensions="module-info.java;module-info.jav" priority="1" mimetype="" license="MIT" author="Jonathan Poelen ([email protected])"><highlighting><list name="keywords"><item>exports</item><item>module</item><item>open</item><item>opens</item><item>provides</item><item>requires</item><item>to</item><item>transitive</item><item>uses</item><item>with</item></list><contexts><context name="Normal" attribute="Keyword"><keyword String="keywords" attribute="Keyword"/><IncludeRules context="##Java" includeAttrib="1"/></context></contexts><itemDatas><itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="0"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="//" position="afterwhitespace"/><comment name="multiLine" start="/*" end="*/"/></comments><keywords casesensitive="1"/></general></language>
|
||||
Loading…
Reference in a new issue