Liferay.Loader.define("portal-search-web$codemirror@5.62.0/mode/solr/solr",["module","exports","require","../../lib/codemirror"],(function(e,t,r){window,function(e){"use strict";e.defineMode("solr",(function(){var e=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,t=/[\|\!\+\-\*\?\~\^\&]/,r=/^(OR|AND|NOT|TO)$/i;function n(t){return function(n,i){for(var u=t;(t=n.peek())&&null!=t.match(e);)u+=n.next();return i.tokenize=o,r.test(u)?"operator":function(e){return parseFloat(e).toString()===e}(u)?"number":":"==n.peek()?"field":"string"}}function o(r,i){var u,a,c=r.next();return'"'==c?i.tokenize=(a=c,function(e,t){for(var r,n=!1;null!=(r=e.next())&&(r!=a||n);)n=!n&&"\\"==r;return n||(t.tokenize=o),"string"}):t.test(c)?i.tokenize=(u=c,function(e,t){var r="operator";return"+"==u?r+=" positive":"-"==u?r+=" negative":"|"==u?e.eat(/\|/):"&"==u?e.eat(/\&/):"^"==u&&(r+=" boost"),t.tokenize=o,r}):e.test(c)&&(i.tokenize=n(c)),i.tokenize!=o?i.tokenize(r,i):null}return{startState:function(){return{tokenize:o}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}})),e.defineMIME("text/x-solr","solr")}("object"==typeof t&&"object"==typeof e?r("../../lib/codemirror"):CodeMirror)}));
//# sourceMappingURL=solr.js.map