Skip to content

Commit 659df46

Browse files
[python mode] Add new built-in functions
- Aiter (added in 3.10) - Anext (added in 3.10) - Breakpoint (added in 3.7)
1 parent 58f5925 commit 659df46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/python/python.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
if (py3) {
6161
// since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator
6262
var identifiers = parserConf.identifiers|| /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;
63-
myKeywords = myKeywords.concat(["nonlocal", "None", "async", "await", "match", "case"]);
63+
myKeywords = myKeywords.concat(["nonlocal", "None", "aiter", "anext", "async", "await", "breakpoint", "match", "case"]);
6464
myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]);
6565
var stringPrefixes = new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))", "i");
6666
} else {

0 commit comments

Comments
 (0)