{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/37","repository_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage","labels_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/37/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/37/events","html_url":"https://github.com/Microsoft/TypeScript-TmLanguage/issues/37","id":125145725,"number":37,"title":"'module', 'instanceof' and operators all get 'keyword.operator' scope","user":{"login":"aeschli","id":6461412,"avatar_url":"https://avatars.githubusercontent.com/u/6461412?v=3","gravatar_id":"","url":"https://api.github.com/users/aeschli","html_url":"https://github.com/aeschli","followers_url":"https://api.github.com/users/aeschli/followers","following_url":"https://api.github.com/users/aeschli/following{/other_user}","gists_url":"https://api.github.com/users/aeschli/gists{/gist_id}","starred_url":"https://api.github.com/users/aeschli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeschli/subscriptions","organizations_url":"https://api.github.com/users/aeschli/orgs","repos_url":"https://api.github.com/users/aeschli/repos","events_url":"https://api.github.com/users/aeschli/events{/privacy}","received_events_url":"https://api.github.com/users/aeschli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-06T10:02:12Z","updated_at":"2016-02-22T13:27:35Z","closed_at":null,"body":"Try the following example in VS code (0.10.6) in the dark theme:\r\n\r\n```typescript\r\nmodule Body {\r\n    export class Cell {\r\n        public parent: Cell;\r\n\r\n        constructor(parent: Cell) {\r\n            this.parent = parent;\r\n            if (typeof parent === 'object' || parent instanceof Error) {\r\n            }\r\n        }\r\n \r\n```\r\n![image](https://cloud.githubusercontent.com/assets/6461412/12139947/3fa94cca-b464-11e5-8407-46109c781345.png)\r\n\r\n\r\nNote that `module`, `instanceof` and `typeof`  are rendered white instead of blue as other keywords.\r\nproblem is that they all get the `keyword.operator` scope.\r\n- module: `keyword operator ts`\r\n- typeof: `block body decl declaration keyword meta method object operator ts`\r\n- instanceof: `block body decl declaration keyword meta method object operator ts`\r\n\r\nThe same scope is also given to operators like '=' ('block body comparison decl declaration keyword meta method object operator ts') which we need to stay white.\r\n\r\nCan you either remove keyword from the `=` operator or not use `operator` for keywords like `module`?\r\nI'd favor the second approach. Note that there the same issue with `import`."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/comments/187171904","html_url":"https://github.com/Microsoft/TypeScript-TmLanguage/issues/37#issuecomment-187171904","issue_url":"https://api.github.com/repos/Microsoft/TypeScript-TmLanguage/issues/37","id":187171904,"user":{"login":"aeschli","id":6461412,"avatar_url":"https://avatars.githubusercontent.com/u/6461412?v=3","gravatar_id":"","url":"https://api.github.com/users/aeschli","html_url":"https://github.com/aeschli","followers_url":"https://api.github.com/users/aeschli/followers","following_url":"https://api.github.com/users/aeschli/following{/other_user}","gists_url":"https://api.github.com/users/aeschli/gists{/gist_id}","starred_url":"https://api.github.com/users/aeschli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeschli/subscriptions","organizations_url":"https://api.github.com/users/aeschli/orgs","repos_url":"https://api.github.com/users/aeschli/repos","events_url":"https://api.github.com/users/aeschli/events{/privacy}","received_events_url":"https://api.github.com/users/aeschli/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T13:27:35Z","updated_at":"2016-02-22T13:27:35Z","body":"Same problem with `namespace`"}}