aboutsummaryrefslogtreecommitdiff
path: root/imports
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-01-27 12:05:17 -0800
committerJose Antonio Marquez2012-01-27 12:05:17 -0800
commit3a754133dbc138390503341fd2e9beba3e43aa4b (patch)
treecdeae7d7dd9a30d7b4fab5afb7efad68d4ec7508 /imports
parentb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (diff)
downloadninja-3a754133dbc138390503341fd2e9beba3e43aa4b.tar.gz
Merged old FileIO
Diffstat (limited to 'imports')
-rwxr-xr-ximports/codemirror/LICENSE19
-rwxr-xr-ximports/codemirror/keymap/emacs.js29
-rwxr-xr-ximports/codemirror/keymap/vim.js76
-rwxr-xr-ximports/codemirror/lib/codemirror.css104
-rwxr-xr-ximports/codemirror/lib/codemirror.js2761
-rwxr-xr-ximports/codemirror/lib/util/dialog.css23
-rwxr-xr-ximports/codemirror/lib/util/dialog.js63
-rwxr-xr-ximports/codemirror/lib/util/foldcode.js66
-rwxr-xr-ximports/codemirror/lib/util/formatting.js291
-rwxr-xr-ximports/codemirror/lib/util/javascript-hint.js83
-rwxr-xr-ximports/codemirror/lib/util/overlay.js51
-rwxr-xr-ximports/codemirror/lib/util/runmode.js27
-rwxr-xr-ximports/codemirror/lib/util/search.js114
-rwxr-xr-ximports/codemirror/lib/util/searchcursor.js117
-rwxr-xr-ximports/codemirror/lib/util/simple-hint.css16
-rwxr-xr-ximports/codemirror/lib/util/simple-hint.js66
-rwxr-xr-ximports/codemirror/mode/clike/clike.js249
-rwxr-xr-ximports/codemirror/mode/clike/index.html101
-rwxr-xr-ximports/codemirror/mode/clojure/clojure.js207
-rwxr-xr-ximports/codemirror/mode/clojure/index.html66
-rwxr-xr-ximports/codemirror/mode/coffeescript/LICENSE22
-rwxr-xr-ximports/codemirror/mode/coffeescript/coffeescript.js325
-rwxr-xr-ximports/codemirror/mode/coffeescript/index.html721
-rwxr-xr-ximports/codemirror/mode/css/css.js124
-rwxr-xr-ximports/codemirror/mode/css/index.html55
-rwxr-xr-ximports/codemirror/mode/diff/diff.css3
-rwxr-xr-ximports/codemirror/mode/diff/diff.js13
-rwxr-xr-ximports/codemirror/mode/diff/index.html99
-rwxr-xr-ximports/codemirror/mode/gfm/gfm.js108
-rwxr-xr-ximports/codemirror/mode/gfm/index.html47
-rwxr-xr-ximports/codemirror/mode/groovy/groovy.js210
-rwxr-xr-ximports/codemirror/mode/groovy/index.html71
-rwxr-xr-ximports/codemirror/mode/haskell/haskell.js242
-rwxr-xr-ximports/codemirror/mode/haskell/index.html60
-rwxr-xr-ximports/codemirror/mode/htmlembedded/htmlembedded.js68
-rwxr-xr-ximports/codemirror/mode/htmlembedded/index.html49
-rwxr-xr-ximports/codemirror/mode/htmlmixed/htmlmixed.js83
-rwxr-xr-ximports/codemirror/mode/htmlmixed/index.html51
-rwxr-xr-ximports/codemirror/mode/javascript/index.html77
-rwxr-xr-ximports/codemirror/mode/javascript/javascript.js360
-rwxr-xr-ximports/codemirror/mode/jinja2/index.html37
-rwxr-xr-ximports/codemirror/mode/jinja2/jinja2.js42
-rwxr-xr-ximports/codemirror/mode/lua/index.html72
-rwxr-xr-ximports/codemirror/mode/lua/lua.js140
-rwxr-xr-ximports/codemirror/mode/markdown/index.html339
-rwxr-xr-ximports/codemirror/mode/markdown/markdown.js242
-rwxr-xr-ximports/codemirror/mode/ntriples/index.html32
-rwxr-xr-ximports/codemirror/mode/ntriples/ntriples.js172
-rwxr-xr-ximports/codemirror/mode/pascal/LICENSE7
-rwxr-xr-ximports/codemirror/mode/pascal/index.html48
-rwxr-xr-ximports/codemirror/mode/pascal/pascal.js138
-rwxr-xr-ximports/codemirror/mode/perl/LICENSE19
-rwxr-xr-ximports/codemirror/mode/perl/index.html62
-rwxr-xr-ximports/codemirror/mode/perl/perl.js816
-rwxr-xr-ximports/codemirror/mode/php/index.html48
-rwxr-xr-ximports/codemirror/mode/php/php.js120
-rwxr-xr-ximports/codemirror/mode/plsql/index.html62
-rwxr-xr-ximports/codemirror/mode/plsql/plsql.js217
-rwxr-xr-ximports/codemirror/mode/python/LICENSE.txt21
-rwxr-xr-ximports/codemirror/mode/python/index.html122
-rwxr-xr-ximports/codemirror/mode/python/python.js333
-rwxr-xr-ximports/codemirror/mode/r/LICENSE24
-rwxr-xr-ximports/codemirror/mode/r/index.html73
-rwxr-xr-ximports/codemirror/mode/r/r.js141
-rwxr-xr-ximports/codemirror/mode/rpm/changes/changes.js19
-rwxr-xr-ximports/codemirror/mode/rpm/changes/index.html53
-rwxr-xr-ximports/codemirror/mode/rpm/spec/index.html99
-rwxr-xr-ximports/codemirror/mode/rpm/spec/spec.css5
-rwxr-xr-ximports/codemirror/mode/rpm/spec/spec.js66
-rwxr-xr-ximports/codemirror/mode/rst/index.html525
-rwxr-xr-ximports/codemirror/mode/rst/rst.js326
-rwxr-xr-ximports/codemirror/mode/ruby/LICENSE24
-rwxr-xr-ximports/codemirror/mode/ruby/index.html171
-rwxr-xr-ximports/codemirror/mode/ruby/ruby.js195
-rwxr-xr-ximports/codemirror/mode/rust/index.html48
-rwxr-xr-ximports/codemirror/mode/rust/rust.js411
-rwxr-xr-ximports/codemirror/mode/scheme/index.html64
-rwxr-xr-ximports/codemirror/mode/scheme/scheme.js202
-rwxr-xr-ximports/codemirror/mode/smalltalk/index.html55
-rwxr-xr-ximports/codemirror/mode/smalltalk/smalltalk.js139
-rwxr-xr-ximports/codemirror/mode/sparql/index.html40
-rwxr-xr-ximports/codemirror/mode/sparql/sparql.js143
-rwxr-xr-ximports/codemirror/mode/stex/index.html95
-rwxr-xr-ximports/codemirror/mode/stex/stex.js167
-rwxr-xr-ximports/codemirror/mode/tiddlywiki/index.html183
-rwxr-xr-ximports/codemirror/mode/tiddlywiki/tiddlywiki.css21
-rwxr-xr-ximports/codemirror/mode/tiddlywiki/tiddlywiki.js374
-rwxr-xr-ximports/codemirror/mode/velocity/index.html103
-rwxr-xr-ximports/codemirror/mode/velocity/velocity.js146
-rwxr-xr-ximports/codemirror/mode/xml/index.html44
-rwxr-xr-ximports/codemirror/mode/xml/xml.js252
-rwxr-xr-ximports/codemirror/mode/xmlpure/index.html59
-rwxr-xr-ximports/codemirror/mode/xmlpure/xmlpure.js485
-rwxr-xr-ximports/codemirror/mode/yaml/index.html67
-rwxr-xr-ximports/codemirror/mode/yaml/yaml.js95
-rwxr-xr-ximports/codemirror/notice.txt4
-rwxr-xr-ximports/codemirror/theme/cobalt.css18
-rwxr-xr-ximports/codemirror/theme/eclipse.css25
-rwxr-xr-ximports/codemirror/theme/elegant.css10
-rwxr-xr-ximports/codemirror/theme/monokai.css28
-rwxr-xr-ximports/codemirror/theme/neat.css9
-rwxr-xr-ximports/codemirror/theme/night.css21
-rwxr-xr-ximports/codemirror/theme/rubyblue.css21
-rwxr-xr-ximports/codemirror/version.txt1
104 files changed, 15457 insertions, 0 deletions
diff --git a/imports/codemirror/LICENSE b/imports/codemirror/LICENSE
new file mode 100755
index 00000000..3f7c0bb1
--- /dev/null
+++ b/imports/codemirror/LICENSE
@@ -0,0 +1,19 @@
1Copyright (C) 2011 by Marijn Haverbeke <marijnh@gmail.com>
2
3Permission is hereby granted, free of charge, to any person obtaining a copy
4of this software and associated documentation files (the "Software"), to deal
5in the Software without restriction, including without limitation the rights
6to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7copies of the Software, and to permit persons to whom the Software is
8furnished to do so, subject to the following conditions:
9
10The above copyright notice and this permission notice shall be included in
11all copies or substantial portions of the Software.
12
13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19THE SOFTWARE.
diff --git a/imports/codemirror/keymap/emacs.js b/imports/codemirror/keymap/emacs.js
new file mode 100755
index 00000000..8fd3564e
--- /dev/null
+++ b/imports/codemirror/keymap/emacs.js
@@ -0,0 +1,29 @@
1// TODO number prefixes
2(function() {
3 // Really primitive kill-ring implementation.
4 var killRing = [];
5 function addToRing(str) {
6 killRing.push(str);
7 if (killRing.length > 50) killRing.shift();
8 }
9 function getFromRing() { return killRing[killRing.length - 1] || ""; }
10 function popFromRing() { if (killRing.length > 1) killRing.pop(); return getFromRing(); }
11
12 CodeMirror.keyMap.emacs = {
13 "Ctrl-X": function(cm) {cm.setOption("keyMap", "emacs-Ctrl-X");},
14 "Ctrl-W": function(cm) {addToRing(cm.getSelection()); cm.replaceSelection("");},
15 "Ctrl-Alt-W": function(cm) {addToRing(cm.getSelection()); cm.replaceSelection("");},
16 "Alt-W": function(cm) {addToRing(cm.getSelection());},
17 "Ctrl-Y": function(cm) {cm.replaceSelection(getFromRing());},
18 "Alt-Y": function(cm) {cm.replaceSelection(popFromRing());},
19 "Ctrl-/": "undo", "Shift-Ctrl--": "undo", "Shift-Alt-,": "goDocStart", "Shift-Alt-.": "goDocEnd",
20 "Ctrl-S": "findNext", "Ctrl-R": "findPrev", "Ctrl-G": "clearSearch", "Shift-Alt-5": "replace",
21 "Ctrl-Z": "undo", "Cmd-Z": "undo",
22 fallthrough: ["basic", "emacsy"]
23 };
24
25 CodeMirror.keyMap["emacs-Ctrl-X"] = {
26 "Ctrl-S": "save", "Ctrl-W": "save", "S": "saveAll", "F": "open", "U": "undo", "K": "close",
27 auto: "emacs", catchall: function(cm) {/*ignore*/}
28 };
29})();
diff --git a/imports/codemirror/keymap/vim.js b/imports/codemirror/keymap/vim.js
new file mode 100755
index 00000000..e03e0128
--- /dev/null
+++ b/imports/codemirror/keymap/vim.js
@@ -0,0 +1,76 @@
1