Liferay.Loader.define("fragment-web$codemirror@5.65.2/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),d=a.ch,f=d;f&&t.test(c.charAt(f-1));)--f;for(var l=f!=d&&c.slice(f,d),s=i&&i.list||[],u={},m=new RegExp(t.source,"g"),p=-1;p<=1;p+=2)for(var h=a.line,w=Math.min(Math.max(h+p*n,o.firstLine()),o.lastLine())+p;h!=w;h+=p)for(var g,y=o.getLine(h);g=m.exec(y);)h==a.line&&g[0]===l||l&&0!=g[0].lastIndexOf(l,0)||Object.prototype.hasOwnProperty.call(u,g[0])||(u[g[0]]=!0,s.push(g[0]));return{list:s,from:e.Pos(a.line,f),to:e.Pos(a.line,d)}}))},"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