"use strict";(self.webpackChunksc_note_comment=self.webpackChunksc_note_comment||[]).push([[5680],{5680(M,A,U){function I(e){for(var n={},T=e.split(" "),t=0;t<T.length;++t)n[T[t]]=!0;return n}U.d(A,{ttcnCfg:()=>D});const i={name:"ttcn-cfg",keywords:I("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:I("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:I("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0};var E,u=i.keywords,R=i.fileNCtrlMaskOptions,S=i.externalCommands,P=i.multiLineStrings,c=!1!==i.indentStatements,_=/[\|]/;function L(e,n){var T=e.next();if('"'==T||"'"==T)return n.tokenize=function f(e){return function(n,T){for(var N,t=!1,O=!1;null!=(N=n.next());){if(N==e&&!t){var C=n.peek();C&&("b"==(C=C.toLowerCase())||"h"==C||"o"==C)&&n.next(),O=!0;break}t=!t&&"\\"==N}return(O||!(t||P))&&(T.tokenize=null),"string"}}(T),n.tokenize(e,n);if(/[:=]/.test(T))return E=T,"punctuation";if("#"==T)return e.skipToEnd(),"comment";if(/\d/.test(T))return e.eatWhile(/[\w\.]/),"number";if(_.test(T))return e.eatWhile(_),"operator";if("["==T)return e.eatWhile(/[\w_\]]/),"number";e.eatWhile(/[\w\$_]/);var t=e.current();return u.propertyIsEnumerable(t)?"keyword":R.propertyIsEnumerable(t)?"atom":S.propertyIsEnumerable(t)?"deleted":"variable"}function l(e,n,T,t,N){this.indented=e,this.column=n,this.type=T,this.align=t,this.prev=N}function r(e,n,T){var t=e.indented;return e.context&&"statement"==e.context.type&&(t=e.context.indented),e.context=new l(t,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}const D={name:"ttcn",startState:function(){return{tokenize:null,context:new l(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var T=n.context;if(e.sol()&&(null==T.align&&(T.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;E=null;var t=(n.tokenize||L)(e,n);if("comment"==t)return t;if(null==T.align&&(T.align=!0),";"!=E&&":"!=E&&","!=E||"statement"!=T.type)if("{"==E)r(n,e.column(),"}");else if("["==E)r(n,e.column(),"]");else if("("==E)r(n,e.column(),")");else if("}"==E){for(;"statement"==T.type;)T=o(n);for("}"==T.type&&(T=o(n));"statement"==T.type;)T=o(n)}else E==T.type?o(n):c&&(("}"==T.type||"top"==T.type)&&";"!=E||"statement"==T.type&&"newstatement"==E)&&r(n,e.column(),"statement");else o(n);return n.startOfLine=!1,t},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"#"}}}}}]);