Liferay.Loader.define("liferay!object-js-components-web$codemirror@5.65.12/addon/fold/indent-fold",["module","exports","require","../../lib/codemirror"],(function(e,n,o){var i,t=void 0;window;i=function(e){"use strict";function lineIndent(n,o){var i=n.getLine(o),t=i.search(/\S/);return-1==t||/\bcomment\b/.test(n.getTokenTypeAt(e.Pos(o,t+1)))?-1:e.countColumn(i,null,n.getOption("tabSize"))}e.registerHelper("fold","indent",(function(n,o){var i=lineIndent(n,o.line);if(!(i<0)){for(var t=null,r=o.line+1,l=n.lastLine();r<=l;++r){var d=lineIndent(n,r);if(-1==d);else{if(!(d>i))break;t=r}}return t?{from:e.Pos(o.line,n.getLine(o.line).length),to:e.Pos(t,n.getLine(t).length)}:void 0}}))},"object"==typeof n&&"object"==typeof e?i(o("../../lib/codemirror")):"function"==typeof t&&t.amd?t(["../../lib/codemirror"],i):i(CodeMirror)}));
//# sourceMappingURL=indent-fold.js.map