(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[30581],{30581:function(D,f,d){"use strict";d.r(f),d.d(f,{ttcn:function(){return B}});function o(e){for(var t={},n=e.split(" "),r=0;r!\/]/,l;function P(e,t){var n=e.next();if(n=='"'||n=="'")return t.tokenize=$(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(n))return l=n,"punctuation";if(n=="#")return e.skipToEnd(),"atom";if(n=="%")return e.eatWhile(/\b/),"atom";if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if(n=="/"){if(e.eat("*"))return t.tokenize=b,b(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(h.test(n))return n=="@"&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(h),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();return g.propertyIsEnumerable(r)?"keyword":x.propertyIsEnumerable(r)?"builtin":k.propertyIsEnumerable(r)||w.propertyIsEnumerable(r)||C.propertyIsEnumerable(r)||O.propertyIsEnumerable(r)||E.propertyIsEnumerable(r)||I.propertyIsEnumerable(r)?"def":L.propertyIsEnumerable(r)||z.propertyIsEnumerable(r)||S.propertyIsEnumerable(r)?"string":M.propertyIsEnumerable(r)?"typeName.standard":W.propertyIsEnumerable(r)?"modifier":_.propertyIsEnumerable(r)?"atom":"variable"}function $(e){return function(t,n){for(var r=!1,c,v=!1;(c=t.next())!=null;){if(c==e&&!r){var s=t.peek();s&&(s=s.toLowerCase(),(s=="b"||s=="h"||s=="o")&&t.next()),v=!0;break}r=!r&&c=="\\"}return(v||!(r||T))&&(n.tokenize=null),"string"}}function b(e,t){for(var n=!1,r;r=e.next();){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function y(e,t,n,r,c){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=c}function p(e,t,n){var r=e.indented;return e.context&&e.context.type=="statement"&&(r=e.context.indented),e.context=new y(r,t,n,null,e.context)}function u(e){var t=e.context.type;return(t==")"||t=="]"||t=="}")&&(e.indented=e.context.indented),e.context=e.context.prev}const B={name:"ttcn",startState:function(){return{tokenize:null,context:new y(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(n.align==null&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;l=null;var r=(t.tokenize||P)(e,t);if(r=="comment")return r;if(n.align==null&&(n.align=!0),(l==";"||l==":"||l==",")&&n.type=="statement")u(t);else if(l=="{")p(t,e.column(),"}");else if(l=="[")p(t,e.column(),"]");else if(l=="(")p(t,e.column(),")");else if(l=="}"){for(;n.type=="statement";)n=u(t);for(n.type=="}"&&(n=u(t));n.type=="statement";)n=u(t)}else l==n.type?u(t):N&&((n.type=="}"||n.type=="top")&&l!=";"||n.type=="statement"&&l=="newstatement")&&p(t,e.column(),"statement");return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:m}}}}]);