Adding regexp for unicode identifers to CM mode.

Brian E. Granger 12 years ago
parent 9e16415907
commit 27f2f6baaa

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

Loading…
Cancel
Save