CoreFiles by mySites.guru
smarty.min.js1 lines, 2,998 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
b6b0c812cb6aa4f844265d64e2a411ad
sha1
8b762541a47867650ee9951f1ff00bafc9ac48e5
sha256
86b9eec817734404ee6f4e1a8b0d242bba1805fbf99f22bef479db775bfdc1e4
!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";e.defineMode("smarty",function(t,r){function n(e,t){return u=t,e}function i(e,t){return null==t&&(t=e.pos),3===s&&"{"==l&&(t==e.string.length||/\s/.test(e.string.charAt(t)))}function a(e,t){for(var r=e.string,n=e.pos;;){var s=r.indexOf(l,n);if(n=s+l.length,-1==s||!i(e,s+l.length))break}if(s==e.pos)return e.match(l),e.eat("*")?function(e,t,r){return t.tokenize=r,r(e,t)}(e,t,function(e,t){return function(r,n){for(;!r.eol();){if(r.match(t)){n.tokenize=a;break}r.next()}return e}}("comment","*"+f)):(t.depth++,t.tokenize=o,u="startTag","tag");s>-1&&(e.string=r.slice(0,s));var c=d.token(e,t.base);return s>-1&&(e.string=r),c}function o(e,t){if(e.match(f,!0))return 3===s?(t.depth--,t.depth<=0&&(t.tokenize=a)):t.tokenize=a,n("tag",null);if(e.match(l,!0))return t.depth++,n("tag","startTag");var r=e.next();if("$"==r)return e.eatWhile(p.validIdentifier),n("variable-2","variable");if("|"==r)return n("operator","pipe");if("."==r)return n("operator","property");if(p.stringChar.test(r))return t.tokenize=function(e){return function(t,r){for(var n=null,i=null;!t.eol();){if(i=t.peek(),t.next()==e&&"\\"!==n){r.tokenize=o;break}n=i}return"string"}}(r),n("string","string");if(p.operatorChars.test(r))return e.eatWhile(p.operatorChars),n("operator","operator");if("["==r||"]"==r)return n("bracket","bracket");if("("==r||")"==r)return n("bracket","operator");if(/\d/.test(r))return e.eatWhile(/\d/),n("number","number");if("variable"==t.last){if("@"==r)return e.eatWhile(p.validIdentifier),n("property","property");if("|"==r)return e.eatWhile(p.validIdentifier),n("qualifier","modifier")}else{if("pipe"==t.last)return e.eatWhile(p.validIdentifier),n("qualifier","modifier");if("whitespace"==t.last)return e.eatWhile(p.validIdentifier),n("attribute","modifier")}if("property"==t.last)return e.eatWhile(p.validIdentifier),n("property",null);if(/\s/.test(r))return u="whitespace",null;var i="";"/"!=r&&(i+=r);for(var d=null;d=e.eat(p.validIdentifier);)i+=d;for(var h=0,b=c.length;h<b;h++)if(c[h]==i)return n("keyword","keyword");return/\s/.test(r)?null:n("tag","tag")}var u,f=r.rightDelimiter||"}",l=r.leftDelimiter||"{",s=r.version||2,d=e.getMode(t,r.baseMode||"null"),c=["debug","extends","function","include","literal"],p={operatorChars:/[+\-*&%=<>!?]/,validIdentifier:/[a-zA-Z0-9_]/,stringChar:/['"]/};return{startState:function(){return{base:e.startState(d),tokenize:a,last:null,depth:0}},copyState:function(t){return{base:e.copyState(d,t.base),tokenize:t.tokenize,last:t.last,depth:t.depth}},innerMode:function(e){if(e.tokenize==a)return{mode:d,state:e.base}},token:function(e,t){var r=t.tokenize(e,t);return t.last=u,r},indent:function(t,r){return t.tokenize==a&&d.indent?d.indent(t.base,r):e.Pass},blockCommentStart:l+"*",blockCommentEnd:"*"+f}}),e.defineMIME("text/x-smarty","smarty")});

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