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