##// END OF EJS Templates
Merge pull request #6253 from jasongrout/highlighting-bug...
Thomas Kluyver -
r17544:44403cd4 merge
parent child Browse files
Show More
@@ -7,10 +7,15 b" CodeMirror.requireMode('python',function(){"
7 "use strict";
7 "use strict";
8
8
9 CodeMirror.defineMode("ipython", function(conf, parserConf) {
9 CodeMirror.defineMode("ipython", function(conf, parserConf) {
10
10 var pythonConf = {};
11 parserConf.singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\\?]");
11 for (var prop in parserConf) {
12 parserConf.name = 'python'
12 if (parserConf.hasOwnProperty(prop)) {
13 return CodeMirror.getMode(conf, parserConf);
13 pythonConf[prop] = parserConf[prop];
14 }
15 }
16 pythonConf.name = 'python';
17 pythonConf.singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\\?]");
18 return CodeMirror.getMode(conf, pythonConf);
14 }, 'python');
19 }, 'python');
15
20
16 CodeMirror.defineMIME("text/x-ipython", "ipython");
21 CodeMirror.defineMIME("text/x-ipython", "ipython");
General Comments 0
You need to be logged in to leave comments. Login now