{"action":"created","issue":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/866","repository_url":"https://api.github.com/repos/sublimehq/Packages","labels_url":"https://api.github.com/repos/sublimehq/Packages/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/sublimehq/Packages/issues/866/comments","events_url":"https://api.github.com/repos/sublimehq/Packages/issues/866/events","html_url":"https://github.com/sublimehq/Packages/pull/866","id":218213487,"number":866,"title":"[C#] @ escapes reserved words","user":{"login":"michaelblyons","id":2701605,"avatar_url":"https://avatars0.githubusercontent.com/u/2701605?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelblyons","html_url":"https://github.com/michaelblyons","followers_url":"https://api.github.com/users/michaelblyons/followers","following_url":"https://api.github.com/users/michaelblyons/following{/other_user}","gists_url":"https://api.github.com/users/michaelblyons/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelblyons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelblyons/subscriptions","organizations_url":"https://api.github.com/users/michaelblyons/orgs","repos_url":"https://api.github.com/users/michaelblyons/repos","events_url":"https://api.github.com/users/michaelblyons/events{/privacy}","received_events_url":"https://api.github.com/users/michaelblyons/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-03-30T14:19:50Z","updated_at":"2017-03-31T13:11:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sublimehq/Packages/pulls/866","html_url":"https://github.com/sublimehq/Packages/pull/866","diff_url":"https://github.com/sublimehq/Packages/pull/866.diff","patch_url":"https://github.com/sublimehq/Packages/pull/866.patch"},"body":"You can use `@` to tell C# that a normally-reserved word is not to be used in its normal context. [MSDN reference.][msdn]\r\n\r\n```cs\r\nvar group = MakeGroup();\r\n// Current syntax gets this right.\r\n\r\nvar contents1 = group.GetContents();\r\n// Current syntax marks `group` as 'keyword.other.sql.cs',\r\n// which is not technically correct because the code compiles\r\n// fine, but it doesn't bother me too much.\r\n\r\nvar contents2 = @group.GetContents();\r\n// Current syntax marks `group` as 'keyword.other.sql.cs'\r\n// and `@` as 'invalid.illegal.reserved-char.cs', which is wrong.\r\n```\r\n\r\nI notice that `@void` already does what it ought to, and added tests for those, too.\r\n\r\n[msdn]: https://msdn.microsoft.com/en-us/library/x53a06bb.aspx\r\n[l40]: https://github.com/sublimehq/Packages/blob/master/C%23/C%23.sublime-syntax#L40\r\n[l1122]: https://github.com/sublimehq/Packages/blob/master/C%23/C%23.sublime-syntax#L1122\r\n"},"comment":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/comments/290707827","html_url":"https://github.com/sublimehq/Packages/pull/866#issuecomment-290707827","issue_url":"https://api.github.com/repos/sublimehq/Packages/issues/866","id":290707827,"user":{"login":"michaelblyons","id":2701605,"avatar_url":"https://avatars0.githubusercontent.com/u/2701605?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelblyons","html_url":"https://github.com/michaelblyons","followers_url":"https://api.github.com/users/michaelblyons/followers","following_url":"https://api.github.com/users/michaelblyons/following{/other_user}","gists_url":"https://api.github.com/users/michaelblyons/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelblyons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelblyons/subscriptions","organizations_url":"https://api.github.com/users/michaelblyons/orgs","repos_url":"https://api.github.com/users/michaelblyons/repos","events_url":"https://api.github.com/users/michaelblyons/events{/privacy}","received_events_url":"https://api.github.com/users/michaelblyons/received_events","type":"User","site_admin":false},"created_at":"2017-03-31T13:11:08Z","updated_at":"2017-03-31T13:11:08Z","body":"Excellent point. I don't think it can match a completely precise list of matches, but I can add some more."}}
{"actor":{"display_login":"michaelblyons"}}