From 27f2f6baaacab7d45071c8f701ca5492822c1e4a Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Thu, 28 Aug 2014 21:42:04 -0400 Subject: [PATCH] Adding regexp for unicode identifers to CM mode. --- IPython/html/static/notebook/js/codemirror-ipython.js | 1 + 1 file changed, 1 insertion(+) diff --git a/IPython/html/static/notebook/js/codemirror-ipython.js b/IPython/html/static/notebook/js/codemirror-ipython.js index 1fb01ee3b..575abad29 100644 --- a/IPython/html/static/notebook/js/codemirror-ipython.js +++ b/IPython/html/static/notebook/js/codemirror-ipython.js @@ -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');