function e(e){for(var t={},n=e.split(` `),r=0;r<n.length;++r)t[n[r]]=!0;return t}var t={name:`ttcn-cfg`,keywords:e(`Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress`),fileNCtrlMaskOptions:e(`TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED`),externalCommands:e(`BeginControlPart EndControlPart BeginTestCase EndTestCase`),multiLineStrings:!0},n=t.keywords,r=t.fileNCtrlMaskOptions,i=t.externalCommands,a=t.multiLineStrings,o=t.indentStatements!==!1,s=/[\|]/,c;function l(e,t){var a=e.next();if(a==`"`||a==`'`)return t.tokenize=u(a),t.tokenize(e,t);if(/[:=]/.test(a))return c=a,`punctuation`;if(a==`#`)return e.skipToEnd(),`comment`;if(/\d/.test(a))return e.eatWhile(/[\w\.]/),`number`;if(s.test(a))return e.eatWhile(s),`operator`;if(a==`[`)return e.eatWhile(/[\w_\]]/),`number`;e.eatWhile(/[\w\$_]/);var o=e.current();return n.propertyIsEnumerable(o)?`keyword`:r.propertyIsEnumerable(o)?`atom`:i.propertyIsEnumerable(o)?`deleted`:`variable`}function u(e){return function(t,n){for(var r=!1,i,o=!1;(i=t.next())!=null;){if(i==e&&!r){var s=t.peek();s&&(s=s.toLowerCase(),(s==`b`||s==`h`||s==`o`)&&t.next()),o=!0;break}r=!r&&i==`\\`}return(o||!(r||a))&&(n.tokenize=null),`string`}}function d(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function f(e,t,n){var r=e.indented;return e.context&&e.context.type==`statement`&&(r=e.context.indented),e.context=new d(r,t,n,null,e.context)}function p(e){var t=e.context.type;return(t==`)`||t==`]`||t==`}`)&&(e.indented=e.context.indented),e.context=e.context.prev}const m={name:`ttcn`,startState:function(){return{tokenize:null,context:new d(0,0,`top`,!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align??=!1,t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;c=null;var r=(t.tokenize||l)(e,t);if(r==`comment`)return r;if(n.align??=!0,(c==`;`||c==`:`||c==`,`)&&n.type==`statement`)p(t);else if(c==`{`)f(t,e.column(),`}`);else if(c==`[`)f(t,e.column(),`]`);else if(c==`(`)f(t,e.column(),`)`);else if(c==`}`){for(;n.type==`statement`;)n=p(t);for(n.type==`}`&&(n=p(t));n.type==`statement`;)n=p(t)}else c==n.type?p(t):o&&((n.type==`}`||n.type==`top`)&&c!=`;`||n.type==`statement`&&c==`newstatement`)&&f(t,e.column(),`statement`);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:`#`}}};export{m as ttcnCfg};