Damson/assets/syntax/gpr.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
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="GPRBuild" version="1" kateversion="5.79" section="Sources" extensions="*.gpr" indenter="ada" mimetype="text/x-adasrc" author="Léo Germond ([email protected])" license="MIT"><highlighting><list name="keywords"><item>abort</item><item>abs</item><item>abstract</item><item>accept</item><item>access</item><item>active</item><item>ada</item><item>additional_patterns</item><item>aggregate</item><item>ali_subdir</item><item>aliased</item><item>all</item><item>and</item><item>archive_builder</item><item>archive_builder_append_option</item><item>archive_indexer</item><item>archive_suffix</item><item>array</item><item>artifacts</item><item>artifacts_in_exec_dir</item><item>artifacts_in_object_dir</item><item>at</item><item>begin</item><item>binder</item><item>bindfile_option_substitution</item><item>body</item><item>body_suffix</item><item>builder</item><item>c</item><item>canonical_target</item><item>case</item><item>casing</item><item>check</item><item>clean</item><item>codepeer</item><item>communication_protocol</item><item>compiler</item><item>compiler_command</item><item>config_body_file_name</item><item>config_body_file_name_index</item><item>config_body_file_name_pattern</item><item>config_file_dependency_support</item><item>config_file_switches</item><item>config_file_unique</item><item>config_spec_file_name</item><item>config_spec_file_name_index</item><item>config_spec_file_name_pattern</item><item>configuration</item><item>constant</item><item>create_missing_dirs</item><item>cross_reference</item><item>database_directory</item><item>debugger_command</item><item>declare</item><item>def</item><item>default_language</item><item>default_switches</item><item>delay</item><item>delta</item><item>dependency_driver</item><item>dependency_kind</item><item>dependency_switches</item><item>digits</item><item>do</item><item>documentation_dir</item><item>dot_replacement</item><item>driver</item><item>eliminate</item><item>else</item><item>elsif</item><item>end</item><item>entry</item><item>exception</item><item>excluded_patterns</item><item>excluded_source_dirs</item><item>excluded_source_files</item><item>excluded_source_list_file</item><item>exec_dir</item><item>exec_subdir</item><item>executable</item><item>executable_suffix</item><item>exit</item><item>export_file_format</item><item>export_file_switch</item><item>extends</item><item>external</item><item>external_as_list</item><item>externally_built</item><item>finder</item><item>flat</item><item>for</item><item>function</item><item>gcc</item><item>gcc_gnu</item><item>gcc_object_list</item><item>gcc_option_list</item><item>generic</item><item>global_compilation_switches</item><item>global_config_file</item><item>global_configuration_pragmas</item><item>gnatlist</item><item>gnatls</item><item>gnatstub</item><item>gnu</item><item>goto</item><item>ide</item><item>if</item><item>ignore_source_sub_dirs</item><item>implementation</item><item>implementation_exceptions</item><item>implementation_suffix</item><item>in</item><item>include_path</item><item>include_path_file</item><item>include_switches</item><item>include_switches_via_spec</item><item>included_artifact_patterns</item><item>included_patterns</item><item>inherit_source_path</item><item>install</item><item>install_name</item><item>install_project</item><item>interface</item><item>interfaces</item><item>is</item><item>language_kind</item><item>languages</item><item>leading_library_options</item><item>leading_required_switches</item><item>leading_switches</item><item>lib_subdir</item><item>library</item><item>library_ali_dir</item><item>library_auto_init</item><item>library_auto_init_supported</item><item>library_builder</item><item>library_dir</item><item>library_encapsulated_options</item><item>library_encapsulated_supported</item><item>library_gcc</item><item>library_install_name_option</item><item>library_interface</item><item>library_kind</item><item>library_major_minor_id_supported</item><item>library_name</item><item>library_options</item><item>library_partial_linker</item><item>library_reference_symbol_file</item><item>library_rpath_options</item><item>library_src_dir</item><item>library_standalone</item><item>library_support</item><item>library_symbol_file</item><item>library_symbol_policy</item><item>library_version</item><item>library_version_switches</item><item>limited</item><item>link_lib_subdir</item><item>linker</item><item>linker_executable_option</item><item>linker_lib_dir_option</item><item>linker_lib_name_option</item><item>linker_options</item><item>local_config_file</item><item>local_configuration_pragmas</item><item>locally_removed_files</item><item>loop</item><item>main</item><item>map_file_option</item><item>mapping_body_suffix</item><item>mapping_file_switches</item><item>mapping_spec_suffix</item><item>max_command_line_length</item><item>message_patterns</item><item>metrics</item><item>mod</item><item>mode</item><item>multi_unit_object_separator</item><item>multi_unit_switches</item><item>name</item><item>naming</item><item>new</item><item>none</item><item>not</item><item>null</item><item>object_artifact_extensions</item><item>object_dir</item><item>object_file_suffix</item><item>object_file_switches</item><item>object_generated</item><item>object_list</item><item>object_lister</item><item>object_lister_matcher</item><item>object_path_switches</item><item>objects_linked</item><item>objects_path</item><item>objects_path_file</item><item>of</item><item>only_dirs_with_sources</item><item>option_list</item><item>or</item><item>origin_project</item><item>others</item><item>out</item><item>output_directory</item><item>overriding</item><item>package</item><item>pic_option</item><item>pragma</item><item>prefix</item><item>pretty_printer</item><item>private</item><item>procedure</item><item>program_host</item><item>project</item><item>project_dir</item><item>project_files</item><item>project_path</item><item>project_subdir</item><item>protected</item><item>raise</item><item>range</item><item>record</item><item>rem</item><item>remote</item><item>remote_host</item><item>renames</item><item>requeue</item><item>required_artifacts</item><item>required_switches</item><item>required_toolchain_version</item><item>response_file_format</item><item>response_file_switches</item><item>return</item><item>reverse</item><item>root_dir</item><item>roots</item><item>run_path_option</item><item>run_path_origin</item><item>runtime</item><item>runtime_dir</item><item>runtime_library_dir</item><item>runtime_library_dirs</item><item>runtime_library_version</item><item>runtime_source_dir</item><item>runtime_source_dirs</item><item>select</item><item>separate</item><item>separate_run_path_options</item><item>separate_suffix</item><item>shared_library_minimum_switches</item><item>shared_library_prefix</item><item>shared_library_suffix</item><item>side_debug</item><item>some</item><item>source_artifact_extensions</item><item>source_dirs</item><item>source_file_switches</item><item>source_files</item><item>source_list_file</item><item>sources_subdir</item><item>spec</item><item>spec_suffix</item><item>specification</item><item>specification_exceptions</item><item>specification_suffix</item><item>split</item><item>stack</item><item>standard</item><item>subtype</item><item>switches</item><item>symbolic_link_supported</item><item>synchronized</item><item>tagged</item><item>target</item><item>task</item><item>terminate</item><item>then</item><item>toolchain_description</item><item>toolchain_name</item><item>toolchain_path</item><item>toolchain_version</item><item>trailing_required_switches</item><item>trailing_switches</item><item>type</item><item>unconditional_linking</item><item>until</item><item>use</item><item>vcs_file_check</item><item>vcs_kind</item><item>vcs_log_check</item><item>warning_message</item><item>when</item><item>while</item><item>with</item><item>xor</item></list><list name="pragmas"/><list name="types"/><contexts><context name="Default" attribute="Normal Text"><DetectSpaces/><StringDetect String="-- BEGIN" attribute="Region Marker" context="Region Marker" beginRegion="RegionMarker" firstNonSpace="1"/><StringDetect String="-- END" attribute="Region Marker" context="Region Marker" endRegion="RegionMarker" firstNonSpace="1"/><StringDetect String="--" attribute="Comment" context="Comment"/><AnyChar String=":!%&amp;()+,-/.*&lt;=>|" attribute="Symbol"/><DetectChar char='"' context="String" lookAhead="1"/><WordDetect String="record" attribute="Keyword" beginRegion="RecordRegion" insensitive="1"/><WordDetect String="case" attribute="Keyword" beginRegion="CaseRegion" insensitive="1"/><WordDetect String="if" attribute="Keyword" beginRegion="IfRegion" insensitive="1"/><WordDetect String="loop" attribute="Keyword" beginRegion="LoopRegion" insensitive="1"/><WordDetect String="select" attribute="Keyword" beginRegion="SelectRegion" insensitive="1"/><WordDetect String="begin" attribute="Keyword" beginRegion="BeginRegion" insensitive="1"/><WordDetect String="end" attribute="Keyword" context="End" insensitive="1" lookAhead="1"/><WordDetect String="null" attribute="Keyword" context="Null" insensitive="1"/><keyword String="keywords" attribute="Keyword"/><DetectIdentifier/></context><context name="Region Marker" attribute="Region Marker" lineEndContext="#pop"/><context name="Comment" attribute="Comment" lineEndContext="#pop"><DetectSpaces attribute="Comment"/><IncludeRules context="##Comments"/><DetectIdentifier attribute="Comment"/></context><context name="End" attribute="Keyword" lineEndContext="#pop"><RegExpr String="end\s+record\b" attribute="Keyword" context="#pop" endRegion="RecordRegion" insensitive="1"/><RegExpr String="end\s+case\b" attribute="Keyword" context="#pop" endRegion="CaseRegion" insensitive="1"/><RegExpr String="end\s+if\b" attribute="Keyword" context="#pop" endRegion="IfRegion" insensitive="1"/><RegExpr String="end\s+loop\b" attribute="Keyword" context="#pop" endRegion="LoopRegion" insensitive="1"/><RegExpr String="end\s+select\b" attribute="Keyword" context="#pop" endRegion="SelectRegion" insensitive="1"/><DetectIdentifier attribute="Keyword" context="#pop" endRegion="BeginRegion"/></context><context name="Null" attribute="Normal Text" fallthroughContext="#pop" lineEndContext="#pop"><DetectSpaces attribute="Normal Text"/><WordDetect String="record" attribute="Keyword" context="#pop" insensitive="1"/></context><context name="PartialString" attribute="String" lineEndContext="#pop#pop"/><context name="String" attribute="String" fallthroughContext="PartialString" lineEndContext="#pop"><RangeDetect char1='"' char='"' attribute="String" context="#pop"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="String" defStyleNum="dsString"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Symbol" defStyleNum="dsOperator"/><itemData name="Region Marker" defStyleNum="dsRegionMarker"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="--" position="afterwhitespace"/></comments><keywords casesensitive="0"/></general></language>