ace.define("ace/mode/c9search",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/c9search_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/folding/c9search"],(function(e,t,n){var i=e("../lib/oop"),o=e("./text").Mode,r=e("../tokenizer").Tokenizer,c=e("./c9search_highlight_rules").C9SearchHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,h=e("./folding/c9search").FoldMode,s=function(){this.$tokenizer=new r((new c).getRules(),"i"),this.$outdent=new a,this.foldingRules=new h};i.inherits(s,o),function(){this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)}}.call(s.prototype),t.Mode=s})),ace.define("ace/mode/c9search_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,n){var i=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,r=function(){this.$rules={start:[{token:["c9searchresults.constant.numeric","c9searchresults.text","c9searchresults.text"],regex:"(^\\s+[0-9]+)(:\\s*)(.+)"},{token:["string","text"],regex:"(.+)(:$)"}]}};i.inherits(r,o),t.C9SearchHighlightRules=r})),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],(function(e,t,n){var i=e("../range").Range,o=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t).match(/^(\s*\})/);if(!n)return 0;var o=n[1].length,r=e.findMatchingBracket({row:t,column:o});if(!r||r.row==t)return 0;var c=this.$getIndent(e.getLine(r.row));e.replace(new i(t,0,t,o-1),c)},this.$getIndent=function(e){var t=e.match(/^(\s+)/);return t?t[1]:""}}).call(o.prototype),t.MatchingBraceOutdent=o})),ace.define("ace/mode/folding/c9search",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],(function(e,t,n){var i=e("../../lib/oop"),o=e("../../range").Range,r=e("./fold_mode").FoldMode,c=t.FoldMode=function(){};i.inherits(c,r),function(){this.foldingStartMarker=/^(\S.*\:|Searching for.*)$/,this.foldingStopMarker=/^(\s+|Found.*)$/,this.getFoldWidgetRange=function(e,t,n){var i=e.doc.getAllLines(n),r=i[n],c=/^(Found.*|Searching for.*)$/,a=c.test(r)?c:/^(\S.*\:|\s*)$/;if(this.foldingStartMarker.test(r)){for(var h=n+1,s=e.getLength();h<s&&!a.test(i[h]);h++);return new o(n,r.length,h,0)}if(this.foldingStopMarker.test(r)){for(h=n-1;h>=0&&(r=i[h],!a.test(r));h--);return new o(h,r.length,n,0)}}}.call(c.prototype)}));
