| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<!-- Ref SMIv2: RFC 2578, RFC 2579 and RFC 2580 --> |
| 4 |
<language name="MIB" version="4" kateversion="5.0" section="Other" extensions="*.mib" casesensitive="1" author="Jaap Keuter ([email protected])" license="MIT"> |
| 5 |
<highlighting> |
| 6 |
<list name="keywords"> |
| 7 |
<item>ABSENT</item> |
| 8 |
<item>ACCESS</item> |
| 9 |
<item>AGENT-CAPABILITIES</item> |
| 10 |
<item>ANY</item> |
| 11 |
<item>APPLICATION</item> |
| 12 |
<item>AUGMENTS</item> |
| 13 |
<item>BEGIN</item> |
| 14 |
<item>BIT</item> |
| 15 |
<item>BITS</item> |
| 16 |
<item>BOOLEAN</item> |
| 17 |
<item>BY</item> |
| 18 |
<item>CHOICE</item> |
| 19 |
<item>COMPONENT</item> |
| 20 |
<item>COMPONENTS</item> |
| 21 |
<item>CONTACT-INFO</item> |
| 22 |
<item>CREATION-REQUIRES</item> |
| 23 |
<item>DEFAULT</item> |
| 24 |
<item>DEFINED</item> |
| 25 |
<item>DEFINITIONS</item> |
| 26 |
<item>DEFVAL</item> |
| 27 |
<item>DESCRIPTION</item> |
| 28 |
<item>DISPLAY-HINT</item> |
| 29 |
<item>END</item> |
| 30 |
<item>ENUMERATED</item> |
| 31 |
<item>ENTERPRISE</item> |
| 32 |
<item>EXPLICIT</item> |
| 33 |
<item>EXPORTS</item> |
| 34 |
<item>EXTERNAL</item> |
| 35 |
<item>FALSE</item> |
| 36 |
<item>FROM</item> |
| 37 |
<item>GROUP</item> |
| 38 |
<item>IMPLICIT</item> |
| 39 |
<item>IMPLIED</item> |
| 40 |
<item>IMPORTS</item> |
| 41 |
<item>INCLUDES</item> |
| 42 |
<item>INDEX</item> |
| 43 |
<item>LAST-UPDATED</item> |
| 44 |
<item>MANDATORY-GROUPS</item> |
| 45 |
<item>MAX</item> |
| 46 |
<item>MAX-ACCESS</item> |
| 47 |
<item>MIN</item> |
| 48 |
<item>MIN-ACCESS</item> |
| 49 |
<item>MINUS-INFINITY</item> |
| 50 |
<item>MODULE</item> |
| 51 |
<item>MODULE-COMPLIANCE</item> |
| 52 |
<item>MODULE-IDENTITY</item> |
| 53 |
<item>NOTIFICATION-GROUP</item> |
| 54 |
<item>NOTIFICATION-TYPE</item> |
| 55 |
<item>NOTIFICATIONS</item> |
| 56 |
<item>NULL</item> |
| 57 |
<item>OBJECT-GROUP</item> |
| 58 |
<item>OBJECT-IDENTITY</item> |
| 59 |
<item>OBJECT-TYPE</item> |
| 60 |
<item>OBJECTS</item> |
| 61 |
<item>OF</item> |
| 62 |
<item>OPTIONAL</item> |
| 63 |
<item>ORGANIZATION</item> |
| 64 |
<item>PLUS-INFINITY</item> |
| 65 |
<item>PRESENT</item> |
| 66 |
<item>PRIVATE</item> |
| 67 |
<item>PRODUCT-RELEASE</item> |
| 68 |
<item>REAL</item> |
| 69 |
<item>REFERENCE</item> |
| 70 |
<item>REVISION</item> |
| 71 |
<item>SEQUENCE</item> |
| 72 |
<item>SET</item> |
| 73 |
<item>SIZE</item> |
| 74 |
<item>STATUS</item> |
| 75 |
<item>SUPPORTS</item> |
| 76 |
<item>SYNTAX</item> |
| 77 |
<item>TAGS</item> |
| 78 |
<item>TEXTUAL-CONVENTION</item> |
| 79 |
<item>TRAP-TYPE</item> |
| 80 |
<item>TRUE</item> |
| 81 |
<item>UNITS</item> |
| 82 |
<item>UNIVERSAL</item> |
| 83 |
<item>VARIABLES</item> |
| 84 |
<item>VARIATION</item> |
| 85 |
<item>WITH</item> |
| 86 |
<item>WRITE-SYNTAX</item> |
| 87 |
</list> |
| 88 |
<list name="basetypes"> |
| 89 |
<item>INTEGER</item> |
| 90 |
<item>OCTET</item> <!-- should be, but cannot be concatenated with next--> |
| 91 |
<item>STRING</item> |
| 92 |
<item>OBJECT</item> <!-- should be, but cannot be concatenated with next --> |
| 93 |
<item>IDENTIFIER</item> |
| 94 |
<item>Integer32</item> |
| 95 |
<item>IpAddress</item> |
| 96 |
<item>Counter32</item> |
| 97 |
<item>Gauge32</item> |
| 98 |
<item>Unsigned32</item> |
| 99 |
<item>TimeTicks</item> |
| 100 |
<item>Opaque</item> |
| 101 |
<item>Counter64</item> |
| 102 |
</list> |
| 103 |
<list name="statuses"> |
| 104 |
<item>obsolete</item> |
| 105 |
<item>deprecated</item> |
| 106 |
<item>current</item> |
| 107 |
</list> |
| 108 |
<list name="accesstypes"> |
| 109 |
<item>not-accessible</item> |
| 110 |
<item>accessible-for-notify</item> |
| 111 |
<item>read-only</item> |
| 112 |
<item>read-write</item> |
| 113 |
<item>read-create</item> |
| 114 |
</list> |
| 115 |
<contexts> |
| 116 |
<context name="Normal" attribute="Normal Text" lineEndContext="#stay"> |
| 117 |
<WordDetect attribute="Keyword" context="Import" String="IMPORTS"/> |
| 118 |
<!-- for SEQUENCE on next line --> |
| 119 |
<RegExpr context="Syntax" String="(?|(\w+)\s*::=(?:\s*TEXTUAL-CONVENTION|\W*$|\s*SEQUENCE)|SYNTAX\s*(\w+))" lookAhead="true"/> |
| 120 |
<WordDetect attribute="Keyword" context="Sequence" String="SEQUENCE"/> |
| 121 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 122 |
<keyword attribute="Keyword" context="#stay" String="basetypes"/> |
| 123 |
<keyword attribute="Status" context="#stay" String="statuses"/> |
| 124 |
<keyword attribute="Accesstype" context="#stay" String="accesstypes"/> |
| 125 |
<DetectChar attribute="String" context="String" char="""/> |
| 126 |
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/> |
| 127 |
<Int attribute="Decimal" context="#stay"/> |
| 128 |
<Detect2Chars attribute="Decimal" context="#stay" char="." char1="."/> |
| 129 |
</context> |
| 130 |
<context name="Import" attribute="Syntax" lineEndContext="#stay"> |
| 131 |
<WordDetect attribute="Keyword" context="From" String="FROM"/> |
| 132 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 133 |
<keyword attribute="Keyword" context="#stay" String="basetypes"/> |
| 134 |
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/> |
| 135 |
<DetectChar attribute="Normal Text" context="#pop" char=";"/> |
| 136 |
</context> |
| 137 |
<context name="From" attribute="Normal Text" lineEndContext="#pop"> |
| 138 |
<DetectChar attribute="Normal Text" context="#pop#pop" char=";"/> |
| 139 |
</context> |
| 140 |
<context name="Syntax" attribute="Syntax" lineEndContext="#pop" dynamic="true"> |
| 141 |
<AnyChar attribute="Normal Text" context="#pop" String="{("/> |
| 142 |
<keyword attribute="Keyword" context="#stay" String="keywords"/> |
| 143 |
<keyword attribute="Keyword" context="#stay" String="basetypes"/> |
| 144 |
<StringDetect attribute="Syntax" context="#pop" String="%1" dynamic="true"/> |
| 145 |
</context> |
| 146 |
<context name="Sequence" attribute="Normal Text" lineEndContext="#stay"> |
| 147 |
<keyword attribute="Keyword" context="#stay" String="basetypes"/> |
| 148 |
<Detect2Chars attribute="Comment" context="Comment" char="-" char1="-"/> |
| 149 |
<DetectChar attribute="Normal Text" context="#pop" char="}"/> |
| 150 |
</context> |
| 151 |
<context name="String" attribute="String" lineEndContext="#stay"> |
| 152 |
<LineContinue attribute="String" context="#stay"/> |
| 153 |
<HlCStringChar attribute="Char" context="#stay"/> |
| 154 |
<DetectChar attribute="String" context="#pop" char="""/> |
| 155 |
</context> |
| 156 |
<context name="Comment" attribute="Comment" lineEndContext="#pop"> |
| 157 |
<Detect2Chars attribute="Comment" context="#pop" char="-" char1="-"/> |
| 158 |
<DetectSpaces /> |
| 159 |
<IncludeRules context="##Comments"/> |
| 160 |
</context> |
| 161 |
</contexts> |
| 162 |
<itemDatas> |
| 163 |
<itemData name="Normal Text" defStyleNum="dsNormal"/> |
| 164 |
<itemData name="Syntax" defStyleNum="dsImport" italic="true"/> |
| 165 |
<itemData name="Keyword" defStyleNum="dsKeyword"/> |
| 166 |
<itemData name="Status" defStyleNum="dsDataType"/> |
| 167 |
<itemData name="Accesstype" defStyleNum="dsDataType"/> |
| 168 |
<itemData name="String" defStyleNum="dsString"/> |
| 169 |
<itemData name="Char" defStyleNum="dsChar"/> |
| 170 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 171 |
<itemData name="Decimal" defStyleNum="dsDecVal"/> |
| 172 |
</itemDatas> |
| 173 |
</highlighting> |
| 174 |
<general> |
| 175 |
<comments> |
| 176 |
<comment name="singleLine" start="--"/> |
| 177 |
</comments> |
| 178 |
<keywords casesensitive="1" weakDeliminator="-"/> |
| 179 |
</general> |
| 180 |
</language> |
| 181 |
<!-- kate: replace-tabs on; tab-width 4; indent-width 4; --> |