CoreFiles by mySites.guru
ttcn.min.js1 lines, 5,463 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
c00c86a777411970878823a2d6276239
sha1
9dee1da38c7dac8fde3909d693996d99ea36c937
sha256
b750848c1fcfca0b2abe0a70dde1ca2bf045aa5174c9fa989fa7f8b19d71b175
!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){"use strict";function t(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}e.defineMode("ttcn",function(e,t){function n(e,t){var n=e.next();if('"'==n||"'"==n)return t.tokenize=function(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){var s=t.peek();s&&("b"!=(s=s.toLowerCase())&&"h"!=s&&"o"!=s||t.next()),o=!0;break}i=!i&&"\\"==r}return(o||!i&&!E)&&(n.tokenize=null),"string"}}(n),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(n))return a=n,"punctuation";if("#"==n)return e.skipToEnd(),"atom preprocessor";if("%"==n)return e.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(n))return e.eatWhile(/[\w\.]/),"number";if("/"==n){if(e.eat("*"))return t.tokenize=r,r(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(C.test(n))return"@"==n&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(C),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return l.propertyIsEnumerable(i)?"keyword":p.propertyIsEnumerable(i)?"builtin":u.propertyIsEnumerable(i)?"def timerOps":d.propertyIsEnumerable(i)?"def configOps":m.propertyIsEnumerable(i)?"def verdictOps":f.propertyIsEnumerable(i)?"def portOps":b.propertyIsEnumerable(i)?"def sutOps":h.propertyIsEnumerable(i)?"def functionOps":y.propertyIsEnumerable(i)?"string verdictConsts":v.propertyIsEnumerable(i)?"string booleanConsts":x.propertyIsEnumerable(i)?"string otherConsts":g.propertyIsEnumerable(i)?"builtin types":k.propertyIsEnumerable(i)?"builtin visibilityModifiers":O.propertyIsEnumerable(i)?"atom templateMatch":"variable"}function r(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function i(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function o(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new i(r,t,n,null,e.context)}function s(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}var a,c=e.indentUnit,l=t.keywords||{},p=t.builtin||{},u=t.timerOps||{},f=t.portOps||{},d=t.configOps||{},m=t.verdictOps||{},b=t.sutOps||{},h=t.functionOps||{},y=t.verdictConsts||{},v=t.booleanConsts||{},x=t.otherConsts||{},g=t.types||{},k=t.visibilityModifiers||{},O=t.templateMatch||{},E=t.multiLineStrings,w=!1!==t.indentStatements,C=/[+\-*&@=<>!\/]/;return{startState:function(e){return{tokenize:null,context:new i((e||0)-c,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;a=null;var i=(t.tokenize||n)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=a&&":"!=a&&","!=a||"statement"!=r.type)if("{"==a)o(t,e.column(),"}");else if("["==a)o(t,e.column(),"]");else if("("==a)o(t,e.column(),")");else if("}"==a){for(;"statement"==r.type;)r=s(t);for("}"==r.type&&(r=s(t));"statement"==r.type;)r=s(t)}else a==r.type?s(t):w&&(("}"==r.type||"top"==r.type)&&";"!=a||"statement"==r.type&&"newstatement"==a)&&o(t,e.column(),"statement");else s(t);return t.startOfLine=!1,i},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),function(t,n){function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&i.push(t)}"string"==typeof t&&(t=[t]);var i=[];r(n.keywords),r(n.builtin),r(n.timerOps),r(n.portOps),i.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],i));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}(["text/x-ttcn","text/x-ttcn3","text/x-ttcnpp"],{name:"ttcn",keywords:t("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:t("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:t("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:t("read running start stop timeout"),portOps:t("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:t("create connect disconnect done kill killed map unmap"),verdictOps:t("getverdict setverdict"),sutOps:t("action"),functionOps:t("apply derefers refers"),verdictConsts:t("error fail inconc none pass"),booleanConsts:t("true false"),otherConsts:t("null NULL omit"),visibilityModifiers:t("private public friend"),templateMatch:t("complement ifpresent subset superset permutation"),multiLineStrings:!0})});

No other release has this exact content. See every version of this file.