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