wikijs-fork/assets/js/ace/mode-lucene.js

1 line
1.1 KiB
JavaScript

ace.define("ace/mode/lucene_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"],function(e,t,r){"use strict";var i=e("../lib/oop"),o=(e("../lib/lang"),e("./text_highlight_rules").TextHighlightRules),n=function(){this.$rules={start:[{token:"constant.character.negation",regex:"[\\-]"},{token:"constant.character.interro",regex:"[\\?]"},{token:"constant.character.asterisk",regex:"[\\*]"},{token:"constant.character.proximity",regex:"~[0-9]+\\b"},{token:"keyword.operator",regex:"(?:AND|OR|NOT)\\b"},{token:"paren.lparen",regex:"[\\(]"},{token:"paren.rparen",regex:"[\\)]"},{token:"keyword",regex:"[\\S]+:"},{token:"string",regex:'".*?"'},{token:"text",regex:"\\s+"}]}};i.inherits(n,o),t.LuceneHighlightRules=n}),ace.define("ace/mode/lucene",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/lucene_highlight_rules"],function(e,t,r){"use strict";var i=e("../lib/oop"),o=e("./text").Mode,n=e("./lucene_highlight_rules").LuceneHighlightRules,a=function(){this.HighlightRules=n,this.$behaviour=this.$defaultBehaviour};i.inherits(a,o),function(){this.$id="ace/mode/lucene"}.call(a.prototype),t.Mode=a});