CoreFiles by mySites.guru
ttcn.min.js1 lines, 5,448 bytes, from Joomla_4.0.0-beta3-Beta-Full_Package.zip
Raw History Compare with 4.0.0-beta2
md5
ce8db122d258112bb99dca95c0276314
sha1
e965ebc6428a08e23109699add2be1c2f82e91ae
sha256
d6808d4fb12f587d2472b80daabac5e490c8943f5923e584ebb0fcd8d63f7ecf
!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){var n,r=e.indentUnit,i=t.keywords||{},o=t.builtin||{},s=t.timerOps||{},a=t.portOps||{},l=t.configOps||{},c=t.verdictOps||{},p=t.sutOps||{},u=t.functionOps||{},f=t.verdictConsts||{},d=t.booleanConsts||{},m=t.otherConsts||{},b=t.types||{},h=t.visibilityModifiers||{},y=t.templateMatch||{},v=t.multiLineStrings,x=!1!==t.indentStatements,g=/[+\-*&@=<>!\/]/;function k(e,t){var r,x=e.next();if('"'==x||"'"==x)return t.tokenize=(r=x,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){var s=e.peek();s&&("b"!=(s=s.toLowerCase())&&"h"!=s&&"o"!=s||e.next()),o=!0;break}i=!i&&"\\"==n}return(o||!i&&!v)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(x))return n=x,"punctuation";if("#"==x)return e.skipToEnd(),"atom preprocessor";if("%"==x)return e.eatWhile(/\b/),"atom ttcn3Macros";if(/\d/.test(x))return e.eatWhile(/[\w\.]/),"number";if("/"==x){if(e.eat("*"))return t.tokenize=O,O(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(g.test(x))return"@"==x&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(g),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var k=e.current();return i.propertyIsEnumerable(k)?"keyword":o.propertyIsEnumerable(k)?"builtin":s.propertyIsEnumerable(k)?"def timerOps":l.propertyIsEnumerable(k)?"def configOps":c.propertyIsEnumerable(k)?"def verdictOps":a.propertyIsEnumerable(k)?"def portOps":p.propertyIsEnumerable(k)?"def sutOps":u.propertyIsEnumerable(k)?"def functionOps":f.propertyIsEnumerable(k)?"string verdictConsts":d.propertyIsEnumerable(k)?"string booleanConsts":m.propertyIsEnumerable(k)?"string otherConsts":b.propertyIsEnumerable(k)?"builtin types":h.propertyIsEnumerable(k)?"builtin visibilityModifiers":y.propertyIsEnumerable(k)?"atom templateMatch":"variable"}function O(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function E(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function w(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new E(r,t,n,null,e.context)}function C(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{startState:function(e){return{tokenize:null,context:new E((e||0)-r,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;n=null;var i=(t.tokenize||k)(e,t);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=n&&":"!=n&&","!=n||"statement"!=r.type)if("{"==n)w(t,e.column(),"}");else if("["==n)w(t,e.column(),"]");else if("("==n)w(t,e.column(),")");else if("}"==n){for(;"statement"==r.type;)r=C(t);for("}"==r.type&&(r=C(t));"statement"==r.type;)r=C(t)}else n==r.type?C(t):x&&(("}"==r.type||"top"==r.type)&&";"!=n||"statement"==r.type&&"newstatement"==n)&&w(t,e.column(),"statement");else C(t);return t.startOfLine=!1,i},electricChars:"{}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),function(t,n){"string"==typeof t&&(t=[t]);var r=[];function i(e){if(e)for(var t in e)e.hasOwnProperty(t)&&r.push(t)}i(n.keywords),i(n.builtin),i(n.timerOps),i(n.portOps),r.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],r));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})});

The same content is in 15 releases, Joomla 4.0.0-alpha3 to 4.0.0-beta7. See them all, or every version of this file.