Skip to content

Commit

Permalink
[python mode] Add new built-in functions
Browse files Browse the repository at this point in the history
- Aiter (added in 3.10)
- Anext (added in 3.10)
- Breakpoint (added in 3.7)
  • Loading branch information
Captain-Quack committed Feb 14, 2023
1 parent 58f5925 commit 659df46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/python/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
if (py3) {
// since http://legacy.python.org/dev/peps/pep-0465/ @ is also an operator
var identifiers = parserConf.identifiers|| /^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;
myKeywords = myKeywords.concat(["nonlocal", "None", "async", "await", "match", "case"]);
myKeywords = myKeywords.concat(["nonlocal", "None", "aiter", "anext", "async", "await", "breakpoint", "match", "case"]);
myBuiltins = myBuiltins.concat(["ascii", "bytes", "exec", "print"]);
var stringPrefixes = new RegExp("^(([rbuf]|(br)|(rb)|(fr)|(rf))?('{3}|\"{3}|['\"]))", "i");
} else {
Expand Down

0 comments on commit 659df46

Please sign in to comment.