{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/6664","labels_url":"https://api.github.com/repos/atom/atom/issues/6664/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/6664/comments","events_url":"https://api.github.com/repos/atom/atom/issues/6664/events","html_url":"https://github.com/atom/atom/issues/6664","id":73500401,"number":6664,"title":"Comments break code folding","user":{"login":"whoughton","id":787011,"avatar_url":"https://avatars.githubusercontent.com/u/787011?v=3","gravatar_id":"","url":"https://api.github.com/users/whoughton","html_url":"https://github.com/whoughton","followers_url":"https://api.github.com/users/whoughton/followers","following_url":"https://api.github.com/users/whoughton/following{/other_user}","gists_url":"https://api.github.com/users/whoughton/gists{/gist_id}","starred_url":"https://api.github.com/users/whoughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoughton/subscriptions","organizations_url":"https://api.github.com/users/whoughton/orgs","repos_url":"https://api.github.com/users/whoughton/repos","events_url":"https://api.github.com/users/whoughton/events{/privacy}","received_events_url":"https://api.github.com/users/whoughton/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-06T03:22:11Z","updated_at":"2015-05-06T08:07:45Z","closed_at":"2015-05-06T08:07:45Z","body":"Code folding seems to break if comments are placed at the very beginning of an indented line, such as:\r\n\r\n```ruby\r\ndef customized_tools\r\n    require 'uglifier'\r\n\r\n    @page_module = \"application\"\r\n    @page_submodule = \"tools\"\r\n\r\n    @qp_id = current_user.token\r\n    @qp_id = 'ERROR' if !@qp_id\r\n\r\n#    qp = ActionController::Base.helpers.asset_path \"qp.js\"\r\n    qp = \"assets/qp.js\"\r\n#    Rails.logger.debug \"Asset: #{qp}\"\r\n    bm = File.read(\"#{Rails.root}/support/bm.js\")\r\n```\r\n\r\nWhereas changing the comment start location seems to fix it:\r\n\r\n```ruby\r\ndef customized_tools\r\n    require 'uglifier'\r\n\r\n    @page_module = \"application\"\r\n    @page_submodule = \"tools\"\r\n\r\n    @qp_id = current_user.token\r\n    @qp_id = 'ERROR' if !@qp_id\r\n\r\n    # qp = ActionController::Base.helpers.asset_path \"qp.js\"\r\n    qp = \"assets/qp.js\"\r\n    # Rails.logger.debug \"Asset: #{qp}\"\r\n    bm = File.read(\"#{Rails.root}/support/bm.js\")\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/99367504","html_url":"https://github.com/atom/atom/issues/6664#issuecomment-99367504","issue_url":"https://api.github.com/repos/atom/atom/issues/6664","id":99367504,"user":{"login":"thomasjo","id":3622,"avatar_url":"https://avatars.githubusercontent.com/u/3622?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasjo","html_url":"https://github.com/thomasjo","followers_url":"https://api.github.com/users/thomasjo/followers","following_url":"https://api.github.com/users/thomasjo/following{/other_user}","gists_url":"https://api.github.com/users/thomasjo/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasjo/subscriptions","organizations_url":"https://api.github.com/users/thomasjo/orgs","repos_url":"https://api.github.com/users/thomasjo/repos","events_url":"https://api.github.com/users/thomasjo/events{/privacy}","received_events_url":"https://api.github.com/users/thomasjo/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T08:07:45Z","updated_at":"2015-05-06T08:07:45Z","body":"Folding right now is based on indentation. Regardless, this is a duplicate of https://github.com/atom/atom/issues/3442, so follow that for updates."}}