Liferay.Loader.define("liferay!search-experiences-web$codemirror@5.65.2/mode/dtd/dtd",["module","exports","require","../../lib/codemirror"],(function(e,t,n){window,function(e){"use strict";e.defineMode("dtd",(function(e){var t,n=e.indentUnit;function r(e,n){return t=n,e}function a(e,t){var n,u=e.next();if("<"!=u||!e.eat("!")){if("<"==u&&e.eat("?"))return t.tokenize=("meta","?>",function(e,t){for(;!e.eol();){if(e.match("?>")){t.tokenize=a;break}e.next()}return"meta"}),r("meta",u);if("#"==u&&e.eatWhile(/[\w]/))return r("atom","tag");if("|"==u)return r("keyword","separator");if(u.match(/[\(\)\[\]\-\.,\+\?>]/))return r(null,u);if(u.match(/[\[\]]/))return r("rule",u);if('"'==u||"'"==u)return t.tokenize=(n=u,function(e,t){for(var i,u=!1;null!=(i=e.next());){if(i==n&&!u){t.tokenize=a;break}u=!u&&"\\"==i}return r("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var o=e.current();return null!==o.substr(o.length-1,o.length).match(/\?|\+/)&&e.backUp(1),r("tag","tag")}return"%"==u||"*"==u?r("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),r(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=i,i(e,t)):e.eatWhile(/[\w]/)?r("keyword","doindent"):void 0}function i(e,t){for(var n,i=0;null!=(n=e.next());){if(i>=2&&">"==n){t.tokenize=a;break}i="-"==n?i+1:0}return r("comment","comment")}return{startState:function(e){return{tokenize:a,baseIndent:e||0,stack:[]}},token:function(e,n){if(e.eatSpace())return null;var r=n.tokenize(e,n),a=n.stack[n.stack.length-1];return"["==e.current()||"doindent"===t||"["==t?n.stack.push("rule"):"endtag"===t?n.stack[n.stack.length-1]="endtag":"]"==e.current()||"]"==t||">"==t&&"rule"==a?n.stack.pop():"["==t&&n.stack.push("["),r},indent:function(e,r){var a=e.stack.length;return"]"===r.charAt(0)?a--:">"===r.substr(r.length-1,r.length)&&("<"===r.substr(0,1)||"doindent"==t&&r.length>1||("doindent"==t?a--:">"==t&&r.length>1||"tag"==t&&">"!==r||("tag"==t&&"rule"==e.stack[e.stack.length-1]?a--:"tag"==t?a++:">"===r&&"rule"==e.stack[e.stack.length-1]&&">"===t?a--:">"===r&&"rule"==e.stack[e.stack.length-1]||("<"!==r.substr(0,1)&&">"===r.substr(0,1)?a-=1:">"===r||(a-=1)))),null!=t&&"]"!=t||a--),e.baseIndent+a*n},electricChars:"]>"}})),e.defineMIME("application/xml-dtd","dtd")}("object"==typeof t&&"object"==typeof e?n("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=dtd.js.map