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