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