{"action":"created","issue":{"url":"https://api.github.com/repos/eslint/espree/issues/190","labels_url":"https://api.github.com/repos/eslint/espree/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/eslint/espree/issues/190/comments","events_url":"https://api.github.com/repos/eslint/espree/issues/190/events","html_url":"https://github.com/eslint/espree/issues/190","id":102499171,"number":190,"title":"yield keyword should not be an identifier token","user":{"login":"lo1tuma","id":169170,"avatar_url":"https://avatars.githubusercontent.com/u/169170?v=3","gravatar_id":"","url":"https://api.github.com/users/lo1tuma","html_url":"https://github.com/lo1tuma","followers_url":"https://api.github.com/users/lo1tuma/followers","following_url":"https://api.github.com/users/lo1tuma/following{/other_user}","gists_url":"https://api.github.com/users/lo1tuma/gists{/gist_id}","starred_url":"https://api.github.com/users/lo1tuma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lo1tuma/subscriptions","organizations_url":"https://api.github.com/users/lo1tuma/orgs","repos_url":"https://api.github.com/users/lo1tuma/repos","events_url":"https://api.github.com/users/lo1tuma/events{/privacy}","received_events_url":"https://api.github.com/users/lo1tuma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-22T03:12:11Z","updated_at":"2015-08-22T13:39:12Z","closed_at":null,"body":"If I parse the following code:\r\n\r\n```js\r\nfunction *foo() { yield (0) }\r\n```\r\n\r\nwith `ecmaFeatures: { generators: true }` I get the following token for the `yield` keyword:\r\n\r\n```js\r\n{\r\n    type: 'Identifier',\r\n    value: 'yield'\r\n}\r\n```\r\n\r\nI would expect the `type` to be `\"Keyword\"` instead of `\"Identifier\"`."},"comment":{"url":"https://api.github.com/repos/eslint/espree/issues/comments/133704730","html_url":"https://github.com/eslint/espree/issues/190#issuecomment-133704730","issue_url":"https://api.github.com/repos/eslint/espree/issues/190","id":133704730,"user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"created_at":"2015-08-22T13:39:12Z","updated_at":"2015-08-22T13:39:12Z","body":"This cannot be done. You don't know at tokenisation time whether it will be part of an identifier expression or a yield expression or even a binding identifier."}}