diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/LICENSE b/IPython/frontend/html/notebook/static/codemirror/LICENSE similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/LICENSE rename to IPython/frontend/html/notebook/static/codemirror/LICENSE diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/README.md b/IPython/frontend/html/notebook/static/codemirror/README.md similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/README.md rename to IPython/frontend/html/notebook/static/codemirror/README.md diff --git a/IPython/frontend/html/notebook/static/codemirror/ipython-version-2.15 b/IPython/frontend/html/notebook/static/codemirror/ipython-version-2.15 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/IPython/frontend/html/notebook/static/codemirror/ipython-version-2.15 diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/lib/codemirror.css b/IPython/frontend/html/notebook/static/codemirror/lib/codemirror.css similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/lib/codemirror.css rename to IPython/frontend/html/notebook/static/codemirror/lib/codemirror.css diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/lib/codemirror.js b/IPython/frontend/html/notebook/static/codemirror/lib/codemirror.js similarity index 99% rename from IPython/frontend/html/notebook/static/codemirror-2.12/lib/codemirror.js rename to IPython/frontend/html/notebook/static/codemirror/lib/codemirror.js index 5fda603..2e4531f 100644 --- a/IPython/frontend/html/notebook/static/codemirror-2.12/lib/codemirror.js +++ b/IPython/frontend/html/notebook/static/codemirror/lib/codemirror.js @@ -103,8 +103,8 @@ var CodeMirror = (function() { connect(scroller, "paste", function(){focusInput(); fastPoll();}); connect(input, "paste", function(){fastPoll();}); connect(input, "cut", function(){fastPoll();}); - - // IE throws unspecified error in certain cases, when + + // IE throws unspecified error in certain cases, when // trying to access activeElement before onload var hasFocus; try { hasFocus = (targetDocument.activeElement == input); } catch(e) { } if (hasFocus) setTimeout(onFocus, 20); @@ -248,7 +248,7 @@ var CodeMirror = (function() { } var start = posFromMouse(e); - + switch (e_button(e)) { case 3: if (gecko && !mac) onContextMenu(e); @@ -1255,7 +1255,7 @@ var CodeMirror = (function() { prepareInput(); slowPoll(); } - + if (gecko) { e_stop(e); var mouseup = connect(window, "mouseup", function() { diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/lib/overlay.js b/IPython/frontend/html/notebook/static/codemirror/lib/overlay.js similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/lib/overlay.js rename to IPython/frontend/html/notebook/static/codemirror/lib/overlay.js index c4cdf9f..b2ae21f 100644 --- a/IPython/frontend/html/notebook/static/codemirror-2.12/lib/overlay.js +++ b/IPython/frontend/html/notebook/static/codemirror/lib/overlay.js @@ -42,7 +42,7 @@ CodeMirror.overlayParser = function(base, overlay, combine) { if (state.baseCur != null && combine) return state.baseCur + " " + state.overlayCur; else return state.overlayCur; }, - + indent: function(state, textAfter) { return base.indent(state.base, textAfter); }, diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/lib/runmode.js b/IPython/frontend/html/notebook/static/codemirror/lib/runmode.js similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/lib/runmode.js rename to IPython/frontend/html/notebook/static/codemirror/lib/runmode.js diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/css/css.js b/IPython/frontend/html/notebook/static/codemirror/mode/css/css.js similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/css/css.js rename to IPython/frontend/html/notebook/static/codemirror/mode/css/css.js diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/css/index.html b/IPython/frontend/html/notebook/static/codemirror/mode/css/index.html similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/css/index.html rename to IPython/frontend/html/notebook/static/codemirror/mode/css/index.html diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/htmlmixed/htmlmixed.js b/IPython/frontend/html/notebook/static/codemirror/mode/htmlmixed/htmlmixed.js similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/htmlmixed/htmlmixed.js rename to IPython/frontend/html/notebook/static/codemirror/mode/htmlmixed/htmlmixed.js diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/htmlmixed/index.html b/IPython/frontend/html/notebook/static/codemirror/mode/htmlmixed/index.html similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/htmlmixed/index.html rename to IPython/frontend/html/notebook/static/codemirror/mode/htmlmixed/index.html diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/javascript/index.html b/IPython/frontend/html/notebook/static/codemirror/mode/javascript/index.html similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/javascript/index.html rename to IPython/frontend/html/notebook/static/codemirror/mode/javascript/index.html diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/javascript/javascript.js b/IPython/frontend/html/notebook/static/codemirror/mode/javascript/javascript.js similarity index 99% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/javascript/javascript.js rename to IPython/frontend/html/notebook/static/codemirror/mode/javascript/javascript.js index d3f9289..4e0f7ff 100644 --- a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/javascript/javascript.js +++ b/IPython/frontend/html/notebook/static/codemirror/mode/javascript/javascript.js @@ -52,7 +52,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) { else if (ch == "0" && stream.eat(/x/i)) { stream.eatWhile(/[\da-f]/i); return ret("number", "number"); - } + } else if (/\d/.test(ch)) { stream.match(/^\d*(?:\.\d*)?(?:e[+\-]?\d+)?/); return ret("number", "number"); @@ -134,7 +134,7 @@ CodeMirror.defineMode("javascript", function(config, parserConfig) { // Communicate our context to the combinators. // (Less wasteful than consing up a hundred closures on every call.) cx.state = state; cx.stream = stream; cx.marked = null, cx.cc = cc; - + if (!state.lexical.hasOwnProperty("align")) state.lexical.align = true; diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/markdown/index.html b/IPython/frontend/html/notebook/static/codemirror/mode/markdown/index.html similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/markdown/index.html rename to IPython/frontend/html/notebook/static/codemirror/mode/markdown/index.html diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/markdown/markdown.css b/IPython/frontend/html/notebook/static/codemirror/mode/markdown/markdown.css similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/markdown/markdown.css rename to IPython/frontend/html/notebook/static/codemirror/mode/markdown/markdown.css diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/markdown/markdown.js b/IPython/frontend/html/notebook/static/codemirror/mode/markdown/markdown.js similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/markdown/markdown.js rename to IPython/frontend/html/notebook/static/codemirror/mode/markdown/markdown.js diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/python/LICENSE.txt b/IPython/frontend/html/notebook/static/codemirror/mode/python/LICENSE.txt similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/python/LICENSE.txt rename to IPython/frontend/html/notebook/static/codemirror/mode/python/LICENSE.txt diff --git a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/python/index.html b/IPython/frontend/html/notebook/static/codemirror/mode/python/index.html similarity index 100% rename from IPython/frontend/html/notebook/static/codemirror-2.12/mode/python/index.html rename to IPython/frontend/html/notebook/static/codemirror/mode/python/index.html index 1c36643..88cd09a 100644 --- a/IPython/frontend/html/notebook/static/codemirror-2.12/mode/python/index.html +++ b/IPython/frontend/html/notebook/static/codemirror/mode/python/index.html @@ -11,7 +11,7 @@

CodeMirror 2: Python mode

- +