1
define('ace/mode/lucene', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/lucene_highlight_rules'], function(require, exports, module) {
4
var oop = require("../lib/oop");
5
var TextMode = require("./text").Mode;
6
var Tokenizer = require("../tokenizer").Tokenizer;
7
var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules;
9
var Mode = function() {
10
this.$tokenizer = new Tokenizer(new LuceneHighlightRules().getRules());
13
oop.inherits(Mode, TextMode);
16
});define('ace/mode/lucene_highlight_rules', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/lib/lang', 'ace/mode/text_highlight_rules'], function(require, exports, module) {
19
var oop = require("../lib/oop");
20
var lang = require("../lib/lang");
21
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
23
var LuceneHighlightRules = function() {
27
token : "constant.character.negation",
30
token : "constant.character.interro",
33
token : "constant.character.asterisk",
36
token: 'constant.character.proximity',
39
token : 'keyword.operator',
40
regex: '(?:AND|OR|NOT)\\b'
42
token : "paren.lparen",
45
token : "paren.rparen",
51
token : "string", // " string
61
oop.inherits(LuceneHighlightRules, TextHighlightRules);
63
exports.LuceneHighlightRules = LuceneHighlightRules;