Skip to content
This repository was archived by the owner on Nov 5, 2021. It is now read-only.

Update Python grammar to include keywords introduced in Python 3 #91

Merged
merged 1 commit into from
Aug 26, 2020

Conversation

bolinfest
Copy link
Contributor

This supports microsoft/monaco-editor#1762.

Note the new Python 3 keywords are:

  • async
  • await
  • nonlocal

I also reorganized the list a bit because it seems like it contains
a mixture of keywords and builtins (and self, which is neither...),
so it is helpful to be specific to illustrate how to properly maintain
the list.

This supports microsoft/monaco-editor#1762.

Note the new Python 3 keywords are:

* `async`
* `await`
* `nonlocal`

I also reorganized the list a bit because it seems like it contains
a mixture of keywords and builtins (and `self`, which is neither...),
so it is helpful to be specific to illustrate how to properly maintain
the list.
@bolinfest
Copy link
Contributor Author

/cc @alexdima should be a non-controversial one? If I added too many comments, feel free to remove/edit as you see fit.

@alexdima alexdima added this to the August 2020 milestone Aug 26, 2020
@alexdima
Copy link
Member

Thank you!

@alexdima alexdima merged commit 7c84b22 into microsoft:master Aug 26, 2020
@alexdima alexdima modified the milestones: August 2020, February 2020 Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants