CoreFiles by mySites.guru
swift.min.js1 lines, 4,049 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
cb62f7ab5d9f308f86a77bbf0865431b
sha1
8a58ecda01f5068be6e925911b7ba75200416951
sha256
46b902055e58075b59f2907bff6dc91723e27ef07c8d41c90ce749971c7f0787
!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=0;n<e.length;n++)t[e[n]]=!0;return t}function n(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var y=e.peek();if("/"==y){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(i),i(e,t)}if(e.match(_))return"builtin";if(e.match(x))return"attribute";if(e.match(l))return"number";if(e.match(s))return"number";if(e.match(p))return"number";if(e.match(m))return"number";if(e.match(v))return"property";if(f.indexOf(y)>-1)return e.next(),"operator";if(d.indexOf(y)>-1)return e.next(),e.match(".."),"punctuation";if('"'==y||"'"==y){e.next();var b=function(e){return function(t,n){for(var i,o=!1;i=t.next();)if(o){if("("==i)return n.tokenize.push(r()),"string";o=!1}else{if(i==e)break;o="\\"==i}return n.tokenize.pop(),"string"}}(y);return t.tokenize.push(b),b(e,t)}if(e.match(h)){var k=e.current();return c.hasOwnProperty(k)?"variable-2":u.hasOwnProperty(k)?"atom":o.hasOwnProperty(k)?(a.hasOwnProperty(k)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function r(){var e=0;return function(t,r,i){var o=n(t,r,i);if("punctuation"==o)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),r.tokenize.pop(),r.tokenize[r.tokenize.length-1](t,r);--e}return o}}function i(e,t){return e.match(/^(?:[^*]|\*(?!\/))*/),e.match("*/")&&t.tokenize.pop(),"comment"}var o=t(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),a=t(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),u=t(["true","false","nil","self","super","_"]),c=t(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),f="+-/*%=|&<>~^?!",d=":;,.(){}[]",l=/^\-?0b[01][01_]*/,s=/^\-?0o[0-7][0-7_]*/,p=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,m=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,h=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,v=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,_=/^\#[A-Za-z]+/,x=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;e.defineMode("swift",function(e){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var r=t.prev;t.prev=null;var i=(t.tokenize[t.tokenize.length-1]||n)(e,t,r);if(i&&"comment"!=i?t.prev||(t.prev=i):t.prev=r,"punctuation"==i){var o=/[\(\[\{]|([\]\)\}])/.exec(e.current());o&&(o[1]?function(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}:function(e,t){var n=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;e.context=new function(e,t,n){this.prev=e,this.align=t,this.indented=n}(e.context,n,e.indented)})(t,e)}return i},indent:function(t,n){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(n);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:e.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}}),e.defineMIME("text/x-swift","swift")});

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