CoreFiles by mySites.guru
dtd.min.js1 lines, 2,282 bytes, from Joomla_4.0.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 3.10.0-alpha9
md5
ba816cab677dce6f449bfa2e534ab176
sha1
cded7f310adcda7d03696c327e422d9e0e9bb356
sha256
7f04d56710205b95d173f1b718286cf101279f9a229c39dee9916710635b66c5
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";t.defineMode("dtd",function(t){function e(t,e){return i=e,t}function n(t,i){var u=t.next();if("<"!=u||!t.eat("!")){if("<"==u&&t.eat("?"))return i.tokenize=function(t,e){return function(r,i){for(;!r.eol();){if(r.match(e)){i.tokenize=n;break}r.next()}return t}}("meta","?>"),e("meta",u);if("#"==u&&t.eatWhile(/[\w]/))return e("atom","tag");if("|"==u)return e("keyword","seperator");if(u.match(/[\(\)\[\]\-\.,\+\?>]/))return e(null,u);if(u.match(/[\[\]]/))return e("rule",u);if('"'==u||"'"==u)return i.tokenize=function(t){return function(r,i){for(var u,a=!1;null!=(u=r.next());){if(u==t&&!a){i.tokenize=n;break}a=!a&&"\\"==u}return e("string","tag")}}(u),i.tokenize(t,i);if(t.eatWhile(/[a-zA-Z\?\+\d]/)){var a=t.current();return null!==a.substr(a.length-1,a.length).match(/\?|\+/)&&t.backUp(1),e("tag","tag")}return"%"==u||"*"==u?e("number","number"):(t.eatWhile(/[\w\\\-_%.{,]/),e(null,null))}return t.eatWhile(/[\-]/)?(i.tokenize=r,r(t,i)):t.eatWhile(/[\w]/)?e("keyword","doindent"):void 0}function r(t,r){for(var i,u=0;null!=(i=t.next());){if(u>=2&&">"==i){r.tokenize=n;break}u="-"==i?u+1:0}return e("comment","comment")}var i,u=t.indentUnit;return{startState:function(t){return{tokenize:n,baseIndent:t||0,stack:[]}},token:function(t,e){if(t.eatSpace())return null;var n=e.tokenize(t,e),r=e.stack[e.stack.length-1];return"["==t.current()||"doindent"===i||"["==i?e.stack.push("rule"):"endtag"===i?e.stack[e.stack.length-1]="endtag":"]"==t.current()||"]"==i||">"==i&&"rule"==r?e.stack.pop():"["==i&&e.stack.push("["),n},indent:function(t,e){var n=t.stack.length;return e.match(/\]\s+|\]/)?n-=1:">"===e.substr(e.length-1,e.length)&&("<"===e.substr(0,1)||"doindent"==i&&e.length>1||("doindent"==i?n--:">"==i&&e.length>1||"tag"==i&&">"!==e||("tag"==i&&"rule"==t.stack[t.stack.length-1]?n--:"tag"==i?n++:">"===e&&"rule"==t.stack[t.stack.length-1]&&">"===i?n--:">"===e&&"rule"==t.stack[t.stack.length-1]||("<"!==e.substr(0,1)&&">"===e.substr(0,1)?n-=1:">"===e||(n-=1)))),null!=i&&"]"!=i||n--),t.baseIndent+n*u},electricChars:"]>"}}),t.defineMIME("application/xml-dtd","dtd")});

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