Damson/assets/syntax/mib.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.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE language><language name="MIB" version="4" kateversion="5.62" section="Other" extensions="*.mib" author="Jaap Keuter ([email protected])" license="MIT"><highlighting><list name="keywords"><item>ABSENT</item><item>ACCESS</item><item>AGENT-CAPABILITIES</item><item>ANY</item><item>APPLICATION</item><item>AUGMENTS</item><item>BEGIN</item><item>BIT</item><item>BITS</item><item>BOOLEAN</item><item>BY</item><item>CHOICE</item><item>COMPONENT</item><item>COMPONENTS</item><item>CONTACT-INFO</item><item>CREATION-REQUIRES</item><item>DEFAULT</item><item>DEFINED</item><item>DEFINITIONS</item><item>DEFVAL</item><item>DESCRIPTION</item><item>DISPLAY-HINT</item><item>END</item><item>ENTERPRISE</item><item>ENUMERATED</item><item>EXPLICIT</item><item>EXPORTS</item><item>EXTERNAL</item><item>FALSE</item><item>FROM</item><item>GROUP</item><item>IMPLICIT</item><item>IMPLIED</item><item>IMPORTS</item><item>INCLUDES</item><item>INDEX</item><item>LAST-UPDATED</item><item>MANDATORY-GROUPS</item><item>MAX</item><item>MAX-ACCESS</item><item>MIN</item><item>MIN-ACCESS</item><item>MINUS-INFINITY</item><item>MODULE</item><item>MODULE-COMPLIANCE</item><item>MODULE-IDENTITY</item><item>NOTIFICATION-GROUP</item><item>NOTIFICATION-TYPE</item><item>NOTIFICATIONS</item><item>NULL</item><item>OBJECT-GROUP</item><item>OBJECT-IDENTITY</item><item>OBJECT-TYPE</item><item>OBJECTS</item><item>OF</item><item>OPTIONAL</item><item>ORGANIZATION</item><item>PLUS-INFINITY</item><item>PRESENT</item><item>PRIVATE</item><item>PRODUCT-RELEASE</item><item>REAL</item><item>REFERENCE</item><item>REVISION</item><item>SEQUENCE</item><item>SET</item><item>SIZE</item><item>STATUS</item><item>SUPPORTS</item><item>SYNTAX</item><item>TAGS</item><item>TEXTUAL-CONVENTION</item><item>TRAP-TYPE</item><item>TRUE</item><item>UNITS</item><item>UNIVERSAL</item><item>VARIABLES</item><item>VARIATION</item><item>WITH</item><item>WRITE-SYNTAX</item></list><list name="basetypes"><item>Counter32</item><item>Counter64</item><item>Gauge32</item><item>IDENTIFIER</item><item>INTEGER</item><item>Integer32</item><item>IpAddress</item><item>OBJECT</item><item>OCTET</item><item>Opaque</item><item>STRING</item><item>TimeTicks</item><item>Unsigned32</item></list><list name="statuses"><item>current</item><item>deprecated</item><item>obsolete</item></list><list name="accesstypes"><item>accessible-for-notify</item><item>not-accessible</item><item>read-create</item><item>read-only</item><item>read-write</item></list><contexts><context name="Normal" attribute="Normal Text"><WordDetect String="IMPORTS" attribute="Keyword" context="Import"/><RegExpr String="(?|(\w+)\s*::=(?:\s*TEXTUAL-CONVENTION|\W*$|\s*SEQUENCE)|SYNTAX\s*(\w+))" context="Syntax" lookAhead="1"/><WordDetect String="SEQUENCE" attribute="Keyword" context="Sequence"/><keyword String="keywords" attribute="Keyword"/><keyword String="basetypes" attribute="Keyword"/><keyword String="statuses" attribute="Status"/><keyword String="accesstypes" attribute="Accesstype"/><DetectChar char='"' attribute="String" context="String"/><StringDetect String="--" attribute="Comment" context="Comment"/><Int attribute="Decimal"/><StringDetect String=".." attribute="Decimal"/></context><context name="Comment" attribute="Comment" lineEndContext="#pop"><StringDetect String="--" attribute="Comment" context="#pop"/><DetectSpaces/><IncludeRules context="##Comments"/></context><context name="From" attribute="Normal Text" lineEndContext="#pop"><DetectChar char=";" attribute="Normal Text" context="#pop#pop"/></context><context name="Import" attribute="Syntax"><WordDetect String="FROM" attribute="Keyword" context="From"/><keyword String="keywords" attribute="Keyword"/><keyword String="basetypes" attribute="Keyword"/><StringDetect String="--" attribute="Comment" context="Comment"/><DetectChar char=";" attribute="Normal Text" context="#pop"/></context><context name="Sequence" attribute="Normal Text"><keyword String="basetypes" attribute="Keyword"/><StringDetect String="--" attribute="Comment" context="Comment"/><DetectChar char="}" attribute="Normal Text" context="#pop"/></context><context name="String" attribute="String"><LineContinue attribute="String"/><HlCStringChar attribute="Char"/><DetectChar char='"' attribute="String" context="#pop"/></context><context name="Syntax" attribute="Syntax" lineEndContext="#pop"><AnyChar String="{(" attribute="Normal Text" context="#pop"/><keyword String="keywords" attribute="Keyword"/><keyword String="basetypes" attribute="Keyword"/><StringDetect String="%1" attribute="Syntax" context="#pop" dynamic="1"/></context></contexts><itemDatas><itemData name="Normal Text" defStyleNum="dsNormal"/><itemData name="Syntax" defStyleNum="dsImport" italic="1"/><itemData name="Keyword" defStyleNum="dsKeyword"/><itemData name="Status" defStyleNum="dsDataType"/><itemData name="Accesstype" defStyleNum="dsDataType"/><itemData name="String" defStyleNum="dsString"/><itemData name="Char" defStyleNum="dsChar"/><itemData name="Comment" defStyleNum="dsComment"/><itemData name="Decimal" defStyleNum="dsDecVal"/></itemDatas></highlighting><general><comments><comment name="singleLine" start="--"/></comments><keywords casesensitive="1" weakDeliminator="-"/></general></language>