corrade-nucleus-nucleons – Blame information for rev 24
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
20 | office | 1 | ace.define("ace/mode/lucene_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { |
2 | "use strict"; |
||
3 | |||
4 | var oop = require("../lib/oop"); |
||
5 | var lang = require("../lib/lang"); |
||
6 | var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; |
||
7 | |||
8 | var LuceneHighlightRules = function() { |
||
9 | this.$rules = { |
||
10 | "start" : [ |
||
11 | { |
||
12 | token : "constant.character.negation", |
||
13 | regex : "[\\-]" |
||
14 | }, { |
||
15 | token : "constant.character.interro", |
||
16 | regex : "[\\?]" |
||
17 | }, { |
||
18 | token : "constant.character.asterisk", |
||
19 | regex : "[\\*]" |
||
20 | }, { |
||
21 | token: 'constant.character.proximity', |
||
22 | regex: '~[0-9]+\\b' |
||
23 | }, { |
||
24 | token : 'keyword.operator', |
||
25 | regex: '(?:AND|OR|NOT)\\b' |
||
26 | }, { |
||
27 | token : "paren.lparen", |
||
28 | regex : "[\\(]" |
||
29 | }, { |
||
30 | token : "paren.rparen", |
||
31 | regex : "[\\)]" |
||
32 | }, { |
||
33 | token : "keyword", |
||
34 | regex : "[\\S]+:" |
||
35 | }, { |
||
36 | token : "string", // " string |
||
37 | regex : '".*?"' |
||
38 | }, { |
||
39 | token : "text", |
||
40 | regex : "\\s+" |
||
41 | } |
||
42 | ] |
||
43 | }; |
||
44 | }; |
||
45 | |||
46 | oop.inherits(LuceneHighlightRules, TextHighlightRules); |
||
47 | |||
48 | exports.LuceneHighlightRules = LuceneHighlightRules; |
||
49 | }); |
||
50 | |||
51 | ace.define("ace/mode/lucene",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lucene_highlight_rules"], function(require, exports, module) { |
||
52 | 'use strict'; |
||
53 | |||
54 | var oop = require("../lib/oop"); |
||
55 | var TextMode = require("./text").Mode; |
||
56 | var LuceneHighlightRules = require("./lucene_highlight_rules").LuceneHighlightRules; |
||
57 | |||
58 | var Mode = function() { |
||
59 | this.HighlightRules = LuceneHighlightRules; |
||
60 | this.$behaviour = this.$defaultBehaviour; |
||
61 | }; |
||
62 | |||
63 | oop.inherits(Mode, TextMode); |
||
64 | |||
65 | (function() { |
||
66 | this.$id = "ace/mode/lucene"; |
||
67 | }).call(Mode.prototype); |
||
68 | |||
69 | exports.Mode = Mode; |
||
70 | }); |