summaryrefslogtreecommitdiffstats
path: root/apps/files_texteditor/js/aceeditor/mode-textile.js
diff options
context:
space:
mode:
authorGeorg Ehrke <georg.stefan.germany@googlemail.com>2011-10-16 15:41:00 +0200
committerGeorg Ehrke <georg.stefan.germany@googlemail.com>2011-10-16 15:41:00 +0200
commit9ce15667d5351f21cc88598bb9a5fc757be3213a (patch)
treee360fa927bed6236f8d071a6ba44ae2dfb7c7042 /apps/files_texteditor/js/aceeditor/mode-textile.js
parent512d226d43152bb809cbe76c0ef8f6189f47da00 (diff)
parent323a98adb79b84192085208798525be831b33e81 (diff)
downloadnextcloud-server-9ce15667d5351f21cc88598bb9a5fc757be3213a.tar.gz
nextcloud-server-9ce15667d5351f21cc88598bb9a5fc757be3213a.zip
Merge branch 'calendar' of gitorious.org:owncloud/owncloud
Diffstat (limited to 'apps/files_texteditor/js/aceeditor/mode-textile.js')
-rw-r--r--apps/files_texteditor/js/aceeditor/mode-textile.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_texteditor/js/aceeditor/mode-textile.js b/apps/files_texteditor/js/aceeditor/mode-textile.js
new file mode 100644
index 00000000000..6767f638716
--- /dev/null
+++ b/apps/files_texteditor/js/aceeditor/mode-textile.js
@@ -0,0 +1 @@
+define("ace/mode/textile",["require","exports","module","pilot/oop","ace/mode/text","ace/tokenizer","ace/mode/textile_highlight_rules","ace/mode/matching_brace_outdent","ace/range"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text").Mode,f=a("ace/tokenizer").Tokenizer,g=a("ace/mode/textile_highlight_rules").TextileHighlightRules,h=a("ace/mode/matching_brace_outdent").MatchingBraceOutdent,i=a("ace/range").Range,j=function(){this.$tokenizer=new f((new g).getRules()),this.$outdent=new h};d.inherits(j,e),function(){this.getNextLineIndent=function(a,b,c){return a=="intag"?c:""},this.checkOutdent=function(a,b,c){return this.$outdent.checkOutdent(b,c)},this.autoOutdent=function(a,b,c){this.$outdent.autoOutdent(b,c)}}.call(j.prototype),b.Mode=j}),define("ace/mode/textile_highlight_rules",["require","exports","module","pilot/oop","ace/mode/text_highlight_rules"],function(a,b,c){var d=a("pilot/oop"),e=a("ace/mode/text_highlight_rules").TextHighlightRules,f=function(){this.$rules={start:[{token:"keyword",regex:"h1|h2|h3|h4|h5|h6|bq|p|bc|pre",next:"blocktag"},{token:"keyword",regex:"[\\*]+|[#]+"},{token:"text",regex:".+"}],blocktag:[{token:"keyword",regex:"\\. ",next:"start"},{token:"keyword",regex:"\\(",next:"blocktagproperties"}],blocktagproperties:[{token:"keyword",regex:"\\)",next:"blocktag"},{token:"string",regex:"[a-zA-Z0-9\\-_]+"},{token:"keyword",regex:"#"}]}};d.inherits(f,e),b.TextileHighlightRules=f}),define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(a,b,c){var d=a("ace/range").Range,e=function(){};(function(){this.checkOutdent=function(a,b){return/^\s+$/.test(a)?/^\s*\}/.test(b):!1},this.autoOutdent=function(a,b){var c=a.getLine(b),e=c.match(/^(\s*\})/);if(!e)return 0;var f=e[1].length,g=a.findMatchingBracket({row:b,column:f});if(!g||g.row==b)return 0;var h=this.$getIndent(a.getLine(g.row));a.replace(new d(b,0,b,f-1),h)},this.$getIndent=function(a){var b=a.match(/^(\s+)/);return b?b[1]:""}}).call(e.prototype),b.MatchingBraceOutdent=e}) \ No newline at end of file