'use strict';(function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function g(e){var f={};e=e.split(" ");for(var h=0;h<e.length;++h)f[e[h]]=!0;return f}e.defineMode("ttcn-cfg",function(e,f){function h(a,b){var c=a.next();if('"'==c||"'"==c)return b.tokenize=g(c),b.tokenize(a,b);if(/[:=]/.test(c))return d=c,"punctuation";if("#"==c)return a.skipToEnd(),"comment";
if(/\d/.test(c))return a.eatWhile(/[\w\.]/),"number";if(m.test(c))return a.eatWhile(m),"operator";if("["==c)return a.eatWhile(/[\w_\]]/),"number sectionTitle";a.eatWhile(/[\w\$_]/);a=a.current();return p.propertyIsEnumerable(a)?"keyword":q.propertyIsEnumerable(a)?"negative fileNCtrlMaskOptions":r.propertyIsEnumerable(a)?"negative externalCommands":"variable"}function g(a){return function(b,c){for(var e=!1,d,f=!1;null!=(d=b.next());){if(d==a&&!e){if(d=b.peek())d=d.toLowerCase(),"b"!=d&&"h"!=d&&"o"!=
d||b.next();f=!0;break}e=!e&&"\\"==d}if(f||!e&&!t)c.tokenize=null;return"string"}}function n(a,b,c,d,e){this.indented=a;this.column=b;this.type=c;this.align=d;this.prev=e}function l(a,b,c){var d=a.indented;a.context&&"statement"==a.context.type&&(d=a.context.indented);return a.context=new n(d,b,c,null,a.context)}function k(a){var b=a.context.type;if(")"==b||"]"==b||"}"==b)a.indented=a.context.indented;return a.context=a.context.prev}var u=e.indentUnit,p=f.keywords||{},q=f.fileNCtrlMaskOptions||{},
r=f.externalCommands||{},t=f.multiLineStrings,v=!1!==f.indentStatements,m=/[\|]/,d;return{startState:function(a){return{tokenize:null,context:new n((a||0)-u,0,"top",!1),indented:0,startOfLine:!0}},token:function(a,b){var c=b.context;a.sol()&&(null==c.align&&(c.align=!1),b.indented=a.indentation(),b.startOfLine=!0);if(a.eatSpace())return null;d=null;var e=(b.tokenize||h)(a,b);if("comment"==e)return e;null==c.align&&(c.align=!0);if(";"!=d&&":"!=d&&","!=d||"statement"!=c.type)if("{"==d)l(b,a.column(),
"}");else if("["==d)l(b,a.column(),"]");else if("("==d)l(b,a.column(),")");else if("}"==d){for(;"statement"==c.type;)c=k(b);for("}"==c.type&&(c=k(b));"statement"==c.type;)c=k(b)}else d==c.type?k(b):v&&(("}"==c.type||"top"==c.type)&&";"!=d||"statement"==c.type&&"newstatement"==d)&&l(b,a.column(),"statement");else k(b);b.startOfLine=!1;return e},electricChars:"{}",lineComment:"#",fold:"brace"}});e.defineMIME("text/x-ttcn-cfg",{name:"ttcn-cfg",keywords:g("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:g("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:g("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0})});
