{"action":"created","issue":{"url":"https://api.github.com/repos/MattDMo/PythonImproved/issues/44","labels_url":"https://api.github.com/repos/MattDMo/PythonImproved/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/MattDMo/PythonImproved/issues/44/comments","events_url":"https://api.github.com/repos/MattDMo/PythonImproved/issues/44/events","html_url":"https://github.com/MattDMo/PythonImproved/pull/44","id":101056306,"number":44,"title":"Better scopes for \"async def\"; Add all built-in exceptions and warnings.","user":{"login":"1st1","id":239003,"avatar_url":"https://avatars.githubusercontent.com/u/239003?v=3","gravatar_id":"","url":"https://api.github.com/users/1st1","html_url":"https://github.com/1st1","followers_url":"https://api.github.com/users/1st1/followers","following_url":"https://api.github.com/users/1st1/following{/other_user}","gists_url":"https://api.github.com/users/1st1/gists{/gist_id}","starred_url":"https://api.github.com/users/1st1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1st1/subscriptions","organizations_url":"https://api.github.com/users/1st1/orgs","repos_url":"https://api.github.com/users/1st1/repos","events_url":"https://api.github.com/users/1st1/events{/privacy}","received_events_url":"https://api.github.com/users/1st1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T17:12:44Z","updated_at":"2015-09-05T17:24:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MattDMo/PythonImproved/pulls/44","html_url":"https://github.com/MattDMo/PythonImproved/pull/44","diff_url":"https://github.com/MattDMo/PythonImproved/pull/44.diff","patch_url":"https://github.com/MattDMo/PythonImproved/pull/44.patch"},"body":"This PR changes the implementation of async/await support.\r\n\r\nInstead of classifying 'async' as a 'storage modifier' keyword, it is now correctly classified as a 'control flow' one.\r\n\r\n'async def' must be parsed as part of \"function.python\" scopes, in order for ⌘R to work correctly.\r\n\r\nPlease see the attached screenshots of how the changes look on real code.\r\n\r\nOne more detail: the PR updates the list of built-in exceptions & warning classes. It also stops highlighting `/(\\w+)Error/` kind of exceptions as built-ins. \r\n\r\nP.S. This is a second PR -- the first one was against the master branch by accident.\r\n\r\n<img width=\"389\" alt=\"screen shot 2015-08-14 at 1 08 47 pm\" src=\"https://cloud.githubusercontent.com/assets/239003/9279509/143a6baa-4286-11e5-8c20-becb5983deb2.png\">\r\n<img width=\"657\" alt=\"screen shot 2015-08-14 at 1 08 20 pm\" src=\"https://cloud.githubusercontent.com/assets/239003/9279510/1449d7d4-4286-11e5-8425-87d72d00b3a0.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/MattDMo/PythonImproved/issues/comments/137979245","html_url":"https://github.com/MattDMo/PythonImproved/pull/44#issuecomment-137979245","issue_url":"https://api.github.com/repos/MattDMo/PythonImproved/issues/44","id":137979245,"user":{"login":"MattDMo","id":1776358,"avatar_url":"https://avatars.githubusercontent.com/u/1776358?v=3","gravatar_id":"","url":"https://api.github.com/users/MattDMo","html_url":"https://github.com/MattDMo","followers_url":"https://api.github.com/users/MattDMo/followers","following_url":"https://api.github.com/users/MattDMo/following{/other_user}","gists_url":"https://api.github.com/users/MattDMo/gists{/gist_id}","starred_url":"https://api.github.com/users/MattDMo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattDMo/subscriptions","organizations_url":"https://api.github.com/users/MattDMo/orgs","repos_url":"https://api.github.com/users/MattDMo/repos","events_url":"https://api.github.com/users/MattDMo/events{/privacy}","received_events_url":"https://api.github.com/users/MattDMo/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T17:24:03Z","updated_at":"2015-09-05T17:24:03Z","body":"Looks good. Why did you remove `async` from `invalid.illegal.name.python`?"}}