mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
Merge pull request #1763 from gnestor/@-operator-codemirror
Include `@` operator in Codemirror ipython mode
This commit is contained in:
commit
83785e3533
@ -24,7 +24,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pythonConf.name = 'python';
|
pythonConf.name = 'python';
|
||||||
pythonConf.singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\\?]");
|
pythonConf.singleOperators = new RegExp("^[\\+\\-\\*/%&|@\\^~<>!\\?]");
|
||||||
if (pythonConf.version === 3) {
|
if (pythonConf.version === 3) {
|
||||||
pythonConf.identifiers = new RegExp("^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*");
|
pythonConf.identifiers = new RegExp("^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*");
|
||||||
} else if (pythonConf.version === 2) {
|
} else if (pythonConf.version === 2) {
|
||||||
|
Loading…
Reference in New Issue
Block a user