Liferay.Loader.define("journal-web$codemirror@5.65.2/addon/hint/anyword-hint",["module","exports","require","../../lib/codemirror"],(function(r,e,o){var i,t=void 0;window;i=function(r){"use strict";var e=/[\w$]+/;r.registerHelper("hint","anyword",(function(o,i){for(var t=i&&i.word||e,n=i&&i.range||500,a=o.getCursor(),c=o.getLine(a.line),l=a.ch,d=l;d&&t.test(c.charAt(d-1));)--d;for(var s=d!=l&&c.slice(d,l),f=i&&i.list||[],u={},p=new RegExp(t.source,"g"),h=-1;h<=1;h+=2)for(var m=a.line,w=Math.min(Math.max(m+h*n,o.firstLine()),o.lastLine())+h;m!=w;m+=h)for(var y,b=o.getLine(m);y=p.exec(b);)m==a.line&&y[0]===s||s&&0!=y[0].lastIndexOf(s,0)||Object.prototype.hasOwnProperty.call(u,y[0])||(u[y[0]]=!0,f.push(y[0]));return{list:f,from:r.Pos(a.line,d),to:r.Pos(a.line,l)}}))},"object"==typeof e&&"object"==typeof r?i(o("../../lib/codemirror")):"function"==typeof t&&t.amd?t(["../../lib/codemirror"],i):i(CodeMirror)}));
//# sourceMappingURL=anyword-hint.js.map