Merge pull request #6380 from ellisonbg/latex-complete

Adds Julia-style latex->unicode tab completion
pull/37/head
Thomas Kluyver 12 years ago
commit fdb375e0ef

@ -15,6 +15,11 @@ CodeMirror.requireMode('python',function(){
}
pythonConf.name = 'python';
pythonConf.singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\\?]");
if (pythonConf.version === 3) {
pythonConf.identifiers = new RegExp("^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*");
} else if (pythonConf.version === 2) {
pythonConf.identifiers = new RegExp("^[_A-Za-z][_A-Za-z0-9]*");
}
return CodeMirror.getMode(conf, pythonConf);
}, 'python');

Loading…
Cancel
Save