1 |
- {"version":3,"file":"mode-lucene-1c2eb9d1.js","sources":["../../node_modules/ace-builds/src-noconflict/mode-lucene.js"],"sourcesContent":["ace.define(\"ace/mode/lucene_highlight_rules\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text_highlight_rules\"], function(require, exports, module){\"use strict\";\nvar oop = require(\"../lib/oop\");\nvar TextHighlightRules = require(\"./text_highlight_rules\").TextHighlightRules;\nvar LuceneHighlightRules = function () {\n this.$rules = {\n \"start\": [\n {\n token: \"constant.language.escape\",\n regex: /\\\\[\\-+&|!(){}\\[\\]^\"~*?:\\\\]/\n }, {\n token: \"constant.character.negation\",\n regex: \"\\\\-\"\n }, {\n token: \"constant.character.interro\",\n regex: \"\\\\?\"\n }, {\n token: \"constant.character.required\",\n regex: \"\\\\+\"\n }, {\n token: \"constant.character.asterisk\",\n regex: \"\\\\*\"\n }, {\n token: 'constant.character.proximity',\n regex: '~(?:0\\\\.[0-9]+|[0-9]+)?'\n }, {\n token: 'keyword.operator',\n regex: '(AND|OR|NOT|TO)\\\\b'\n }, {\n token: \"paren.lparen\",\n regex: \"[\\\\(\\\\{\\\\[]\"\n }, {\n token: \"paren.rparen\",\n regex: \"[\\\\)\\\\}\\\\]]\"\n }, {\n token: \"keyword.operator\",\n regex: /[><=^]/\n }, {\n token: \"constant.numeric\",\n regex: /\\d[\\d.-]*/\n }, {\n token: \"string\",\n regex: /\"(?:\\\\\"|[^\"])*\"/\n }, {\n token: \"keyword\",\n regex: /(?:\\\\.|[^\\s\\-+&|!(){}\\[\\]^\"~*?:\\\\])+:/,\n next: \"maybeRegex\"\n }, {\n token: \"term\",\n regex: /\\w+/\n }, {\n token: \"text\",\n regex: /\\s+/\n }\n ],\n \"maybeRegex\": [{\n token: \"text\",\n regex: /\\s+/\n }, {\n token: \"string.regexp.start\",\n regex: \"/\",\n next: \"regex\"\n }, {\n regex: \"\",\n next: \"start\"\n }],\n \"regex\": [\n {\n token: \"regexp.keyword.operator\",\n regex: \"\\\\\\\\(?:u[\\\\da-fA-F]{4}|x[\\\\da-fA-F]{2}|.)\"\n }, {\n token: \"string.regexp.end\",\n regex: \"/[sxngimy]*\",\n next: \"start\"\n }, {\n token: \"invalid\",\n regex: /\\{\\d+\\b,?\\d*\\}[+*]|[+*$^?][+*]|[$^][?]|\\?{3,}/\n }, {\n token: \"constant.language.escape\",\n regex: /\\(\\?[:=!]|\\)|\\{\\d+\\b,?\\d*\\}|[+*]\\?|[()$^+*?.]/\n }, {\n token: \"constant.language.escape\",\n regex: \"<\\d+-\\d+>|[~&@]\"\n }, {\n token: \"constant.language.delimiter\",\n regex: /\\|/\n }, {\n token: \"constant.language.escape\",\n regex: /\\[\\^?/,\n next: \"regex_character_class\"\n }, {\n token: \"empty\",\n regex: \"$\",\n next: \"start\"\n }, {\n defaultToken: \"string.regexp\"\n }\n ],\n \"regex_character_class\": [\n {\n token: \"regexp.charclass.keyword.operator\",\n regex: \"\\\\\\\\(?:u[\\\\da-fA-F]{4}|x[\\\\da-fA-F]{2}|.)\"\n }, {\n token: \"constant.language.escape\",\n regex: \"]\",\n next: \"regex\"\n }, {\n token: \"constant.language.escape\",\n regex: \"-\"\n }, {\n token: \"empty\",\n regex: \"$\",\n next: \"start\"\n }, {\n defaultToken: \"string.regexp.characterclass\"\n }\n ]\n };\n};\noop.inherits(LuceneHighlightRules, TextHighlightRules);\nexports.LuceneHighlightRules = LuceneHighlightRules;\n\n});\n\nace.define(\"ace/mode/lucene\",[\"require\",\"exports\",\"module\",\"ace/lib/oop\",\"ace/mode/text\",\"ace/mode/lucene_highlight_rules\"], function(require, exports, module){'use strict';\nvar oop = require(\"../lib/oop\");\nvar TextMode = require(\"./text\").Mode;\nvar LuceneHighlightRules = require(\"./lucene_highlight_rules\").LuceneHighlightRules;\nvar Mode = function () {\n this.HighlightRules = LuceneHighlightRules;\n this.$behaviour = this.$defaultBehaviour;\n};\noop.inherits(Mode, TextMode);\n(function () {\n this.$id = \"ace/mode/lucene\";\n}).call(Mode.prototype);\nexports.Mode = Mode;\n\n}); (function() {\n ace.require([\"ace/mode/lucene\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","oop","TextHighlightRules","LuceneHighlightRules","TextMode","Mode","m"],"mappings":"gaAAA,IAAI,OAAO,kCAAkC,CAAC,UAAU,UAAU,SAAS,cAAc,+BAA+B,EAAG,SAASA,EAASC,EAASC,EAAO,CAC7J,IAAIC,EAAMH,EAAQ,YAAY,EAC1BI,EAAqBJ,EAAQ,wBAAwB,EAAE,mBACvDK,EAAuB,UAAY,CACnC,KAAK,OAAS,CACV,MAAS,CACL,CACI,MAAO,2BACP,MAAO,4BACvB,EAAe,CACC,MAAO,8BACP,MAAO,KACvB,EAAe,CACC,MAAO,6BACP,MAAO,KACvB,EAAe,CACC,MAAO,8BACP,MAAO,KACvB,EAAe,CACC,MAAO,8BACP,MAAO,KACvB,EAAe,CACC,MAAO,+BACP,MAAO,yBACvB,EAAe,CACC,MAAO,mBACP,MAAO,oBACvB,EAAe,CACC,MAAO,eACP,MAAO,aACvB,EAAe,CACC,MAAO,eACP,MAAO,aACvB,EAAe,CACC,MAAO,mBACP,MAAO,QACvB,EAAe,CACC,MAAO,mBACP,MAAO,WACvB,EAAe,CACC,MAAO,SACP,MAAO,iBACvB,EAAe,CACC,MAAO,UACP,MAAO,wCACP,KAAM,YACtB,EAAe,CACC,MAAO,OACP,MAAO,KACvB,EAAe,CACC,MAAO,OACP,MAAO,KACV,CACJ,EACD,WAAc,CAAC,CACP,MAAO,OACP,MAAO,KACvB,EAAe,CACC,MAAO,sBACP,MAAO,IACP,KAAM,OACtB,EAAe,CACC,MAAO,GACP,KAAM,OACtB,CAAa,EACL,MAAS,CACL,CACI,MAAO,0BACP,MAAO,2CACvB,EAAe,CACC,MAAO,oBACP,MAAO,cACP,KAAM,OACtB,EAAe,CACC,MAAO,UACP,MAAO,+CACvB,EAAe,CACC,MAAO,2BACP,MAA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