{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/7256","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/7256/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/7256/comments","events_url":"https://api.github.com/repos/atom/atom/issues/7256/events","html_url":"https://github.com/atom/atom/issues/7256","id":87849367,"number":7256,"title":"Code sometimes improperly marked as comment","user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-12T20:55:44Z","updated_at":"2016-02-10T00:15:18Z","closed_at":null,"body":"Sometimes, when copy/pasting some code around with comments, I notice that part of my code becomes improperly marked as comments. You can see it happened here, and it becomes normal again when you play around with the comment above it:\r\n\r\n![ex](https://www.dropbox.com/s/74wmso8114588gg/commented%20code.gif?dl=1)\r\n\r\nUnfortunately, I have not yet found out how it can consistently be reproduced, but I've seen it happen at least 5-6 times already. \r\n\r\nI suspect though that it has to do with comment blocks starting with /*. As you can see in the screen recording, the marking seems to end at the */ in the path definition, so it looks as if it's thinking the code above it is part of a comment block still.\r\n\r\nThis is on Max OS X, Atom 0.209.\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/182143443","html_url":"https://github.com/atom/atom/issues/7256#issuecomment-182143443","issue_url":"https://api.github.com/repos/atom/atom/issues/7256","id":182143443,"user":{"login":"adambuczynski","id":490562,"avatar_url":"https://avatars.githubusercontent.com/u/490562?v=3","gravatar_id":"","url":"https://api.github.com/users/adambuczynski","html_url":"https://github.com/adambuczynski","followers_url":"https://api.github.com/users/adambuczynski/followers","following_url":"https://api.github.com/users/adambuczynski/following{/other_user}","gists_url":"https://api.github.com/users/adambuczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/adambuczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adambuczynski/subscriptions","organizations_url":"https://api.github.com/users/adambuczynski/orgs","repos_url":"https://api.github.com/users/adambuczynski/repos","events_url":"https://api.github.com/users/adambuczynski/events{/privacy}","received_events_url":"https://api.github.com/users/adambuczynski/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T00:15:18Z","updated_at":"2016-02-10T00:15:18Z","body":"I'm pretty sure it also happened to me in SCSS files once or twice, so not sure which package is responsible. It's not like the language detects it wrong, I think it's that the language detects it a split second before the comment is completed by the auto completer, and then never updates it afterwards."}}