From fcb0be27f93ec90c1f98e537c8076134a665ad24 Mon Sep 17 00:00:00 2001 From: Grant Nestor Date: Tue, 13 Sep 2016 19:44:04 -0700 Subject: [PATCH] Include `@` operator in Codemirror ipython mode --- notebook/static/notebook/js/codemirror-ipython.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/notebook/js/codemirror-ipython.js b/notebook/static/notebook/js/codemirror-ipython.js index 6b1afa9c9..eacd7ddb7 100644 --- a/notebook/static/notebook/js/codemirror-ipython.js +++ b/notebook/static/notebook/js/codemirror-ipython.js @@ -24,7 +24,7 @@ } } pythonConf.name = 'python'; - pythonConf.singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\\?]"); + 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) {