var e=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,t=/[\|\!\+\-\*\?\~\^\&]/,n=/^(OR|AND|NOT|TO)$/;function r(e){return parseFloat(e).toString()===e}function i(e){return function(t,n){for(var r=!1,i;(i=t.next())!=null&&!(i==e&&!r);)r=!r&&i==`\\`;return r||(n.tokenize=s),`string`}}function a(e){return function(t,n){return e==`|`?t.eat(/\|/):e==`&`&&t.eat(/\&/),n.tokenize=s,`operator`}}function o(t){return function(i,a){for(var o=t;(t=i.peek())&&t.match(e)!=null;)o+=i.next();return a.tokenize=s,n.test(o)?`operator`:r(o)?`number`:i.peek()==`:`?`propertyName`:`string`}}function s(n,r){var c=n.next();return c==`"`?r.tokenize=i(c):t.test(c)?r.tokenize=a(c):e.test(c)&&(r.tokenize=o(c)),r.tokenize==s?null:r.tokenize(n,r)}var c={name:`solr`,startState:function(){return{tokenize:s}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}};export{c as solr};
//# sourceMappingURL=solr.BBopId9w.js.map