function s(i){for(var u={},A=i.split(" "),T=0;T<A.length;++T)u[A[T]]=!0;return u}var a={keywords:s("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:s("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:s("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:s("current deprecated mandatory obsolete"),tags:s("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:s("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:s("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:s("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0};function L(i){var u=i.keywords||a.keywords,A=i.cmipVerbs||a.cmipVerbs,T=i.compareTypes||a.compareTypes,c=i.status||a.status,O=i.tags||a.tags,d=i.storage||a.storage,C=i.modifier||a.modifier,R=i.accessTypes||a.accessTypes,f=i.multiLineStrings||a.multiLineStrings,g=i.indentStatements!==!1,p=/[\|\^]/,E;function D(e,n){var t=e.next();if(t=='"'||t=="'")return n.tokenize=y(t),n.tokenize(e,n);if(/[\[\]\(\){}:=,;]/.test(t))return E=t,"punctuation";if(t=="-"&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(t))return e.eatWhile(/[\w\.]/),"number";if(p.test(t))return e.eatWhile(p),"operator";e.eatWhile(/[\w\-]/);var r=e.current();return u.propertyIsEnumerable(r)?"keyword":A.propertyIsEnumerable(r)?"variableName":T.propertyIsEnumerable(r)?"atom":c.propertyIsEnumerable(r)?"comment":O.propertyIsEnumerable(r)?"typeName":d.propertyIsEnumerable(r)||C.propertyIsEnumerable(r)||R.propertyIsEnumerable(r)?"modifier":"variableName"}function y(e){return function(n,t){for(var r=!1,S,m=!1;(S=n.next())!=null;){if(S==e&&!r){var I=n.peek();I&&(I=I.toLowerCase(),(I=="b"||I=="h"||I=="o")&&n.next()),m=!0;break}r=!r&&S=="\\"}return(m||!(r||f))&&(t.tokenize=null),"string"}}function l(e,n,t,r,S){this.indented=e,this.column=n,this.type=t,this.align=r,this.prev=S}function N(e,n,t){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new l(r,n,t,null,e.context)}function o(e){var n=e.context.type;return(n==")"||n=="]"||n=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}return{name:"asn1",startState:function(){return{tokenize:null,context:new l(-2,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var t=n.context;if(e.sol()&&(t.align??(t.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;E=null;var r=(n.tokenize||D)(e,n);if(r=="comment")return r;if(t.align??(t.align=!0),(E==";"||E==":"||E==",")&&t.type=="statement")o(n);else if(E=="{")N(n,e.column(),"}");else if(E=="[")N(n,e.column(),"]");else if(E=="(")N(n,e.column(),")");else if(E=="}"){for(;t.type=="statement";)t=o(n);for(t.type=="}"&&(t=o(n));t.type=="statement";)t=o(n)}else E==t.type?o(n):g&&((t.type=="}"||t.type=="top")&&E!=";"||t.type=="statement"&&E=="newstatement")&&N(n,e.column(),"statement");return n.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}}}export{L as t};
