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