{"action":"opened","issue":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/675","repository_url":"https://api.github.com/repos/sublimehq/Packages","labels_url":"https://api.github.com/repos/sublimehq/Packages/issues/675/labels{/name}","comments_url":"https://api.github.com/repos/sublimehq/Packages/issues/675/comments","events_url":"https://api.github.com/repos/sublimehq/Packages/issues/675/events","html_url":"https://github.com/sublimehq/Packages/issues/675","id":186317862,"number":675,"title":"[C++] Macro `#if defined MACRO` is not highlighted","user":{"login":"evandrocoan","id":5332158,"avatar_url":"https://avatars.githubusercontent.com/u/5332158?v=3","gravatar_id":"","url":"https://api.github.com/users/evandrocoan","html_url":"https://github.com/evandrocoan","followers_url":"https://api.github.com/users/evandrocoan/followers","following_url":"https://api.github.com/users/evandrocoan/following{/other_user}","gists_url":"https://api.github.com/users/evandrocoan/gists{/gist_id}","starred_url":"https://api.github.com/users/evandrocoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evandrocoan/subscriptions","organizations_url":"https://api.github.com/users/evandrocoan/orgs","repos_url":"https://api.github.com/users/evandrocoan/repos","events_url":"https://api.github.com/users/evandrocoan/events{/privacy}","received_events_url":"https://api.github.com/users/evandrocoan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-31T15:44:19Z","updated_at":"2016-10-31T15:44:19Z","closed_at":null,"body":"### [C++] Macro `#if defined MACRO` is not highlighted\r\n\r\n``` cpp\r\n    class Adapter : public Abstraction\r\n\r\n    #if defined ASPECTO_MACRO\r\n    , public Scenario\r\n    #endif\r\n\r\n    {\r\n    public:\r\n        Adapter();\r\n    }\r\n\r\n#if defined ASPECTO_MACRO\r\n, public Scenario\r\n#endif\r\n```\r\n\r\nOn the vanilla install it is like this:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5332158/19860379/9ff7e838-9f6f-11e6-8182-70af868fae35.png)\r\n\r\nHere we note the correct highlight when it is defined outside the class declaration at the line 12.\r\n\r\nRelated threads: \r\n\r\n1. https://github.com/evandrocoan/SublimeTextStudio/issues/14 _ This whole macro body `#if defined ASPECTO_MACRO` is not highlighted on the Sublime Text C++ Syntax\r\n"}}
{"actor":{"display_login":"evandrocoan"}}