{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/5602","repository_url":"https://api.github.com/repos/arduino/Arduino","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/5602/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/5602/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/5602/events","html_url":"https://github.com/arduino/Arduino/issues/5602","id":190035222,"number":5602,"title":"Editor still does not handle backslashes at the end of lines","user":{"login":"moconoz","id":23523616,"avatar_url":"https://avatars.githubusercontent.com/u/23523616?v=3","gravatar_id":"","url":"https://api.github.com/users/moconoz","html_url":"https://github.com/moconoz","followers_url":"https://api.github.com/users/moconoz/followers","following_url":"https://api.github.com/users/moconoz/following{/other_user}","gists_url":"https://api.github.com/users/moconoz/gists{/gist_id}","starred_url":"https://api.github.com/users/moconoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moconoz/subscriptions","organizations_url":"https://api.github.com/users/moconoz/orgs","repos_url":"https://api.github.com/users/moconoz/repos","events_url":"https://api.github.com/users/moconoz/events{/privacy}","received_events_url":"https://api.github.com/users/moconoz/received_events","type":"User","site_admin":false},"labels":[{"id":21964342,"url":"https://api.github.com/repos/arduino/Arduino/labels/Waiting%20for%20feedback","name":"Waiting for feedback","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-17T12:36:16Z","updated_at":"2016-11-17T13:49:07Z","closed_at":"2016-11-17T13:41:20Z","body":"This error still occurs in version 1.6.12\r\n\r\n```\r\nconst byte Font5x7[6][7] = {\r\n   {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,},   // 0x20, Space\r\n   {0x0e, 0x08, 0x08, 0x08, 0x08, 0x08, 0x0e,},   // 0x5b, [\r\n   {0x10, 0x10, 0x08, 0x04, 0x02, 0x01, 0x01,},   // 0x5c, \\\r\n   {0x0e, 0x02, 0x02, 0x02, 0x02, 0x02, 0x0e,},   // 0x5d, ]\r\n   {0x04, 0x0a, 0x11, 0x00, 0x00, 0x00, 0x00,},   // 0x5e, ^\r\n   {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1f,},   // 0x5f, _\r\n   };\r\n```\r\n  the backslash causes the next line to be ignored corrupting the table\r\n"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/261250797","html_url":"https://github.com/arduino/Arduino/issues/5602#issuecomment-261250797","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/5602","id":261250797,"user":{"login":"moconoz","id":23523616,"avatar_url":"https://avatars.githubusercontent.com/u/23523616?v=3","gravatar_id":"","url":"https://api.github.com/users/moconoz","html_url":"https://github.com/moconoz","followers_url":"https://api.github.com/users/moconoz/followers","following_url":"https://api.github.com/users/moconoz/following{/other_user}","gists_url":"https://api.github.com/users/moconoz/gists{/gist_id}","starred_url":"https://api.github.com/users/moconoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moconoz/subscriptions","organizations_url":"https://api.github.com/users/moconoz/orgs","repos_url":"https://api.github.com/users/moconoz/repos","events_url":"https://api.github.com/users/moconoz/events{/privacy}","received_events_url":"https://api.github.com/users/moconoz/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T13:49:07Z","updated_at":"2016-11-17T13:49:07Z","body":"Thanks,\n\n \n\nI should have known that but it’s been a while since I’ve used that feature.\n\n \n\nCheers\n\nMOC\n\n \n\n \n\nFrom: Cristian Maglie [mailto:notifications@github.com] \nSent: Friday, 18 November 2016 12:42 AM\nTo: arduino/Arduino\nCc: moconoz; Mention\nSubject: Re: [arduino/Arduino] Editor still does not handle backslashes at the end of lines (#5602)\n\n \n\nThe \\ at the end of the line means that the current line continue to the next line. In other words this:\n\n// This is a comment\n\nand this:\n\n// This is \\\na comment\n\nare exactly the same thing. This is a C/C++ standard feature.\nThe line in your code:\n\n   {0x10, 0x10, 0x08, 0x04, 0x02, 0x01, 0x01,},   // 0x5c, \\\n   {0x0e, 0x02, 0x02, 0x02, 0x02, 0x02, 0x0e,},   // 0x5d, ]\n\nis interpreted by the compiler as:\n\n   {0x10, 0x10, 0x08, 0x04, 0x02, 0x01, 0x01,},   // 0x5c,    {0x0e, 0x02, 0x02, 0x02, 0x02, 0x02, 0x0e,},   // 0x5d, ]\n\nso basically you lost a line because it becames part of the comment.\n\nTo workaround your problem you can try to put a trailing space after the \\ (not very good since the space is invisible), or better slightly change your comment style for example:\n\n// 0x5c, '\\'\n\nor\n\n// \\, 0x5c\n\n—\nYou are receiving this because you were mentioned.\nReply to this email directly, view it on GitHub <https://github.com/arduino/Arduino/issues/5602#issuecomment-261248932> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AWbxILTGjPJ-zxyJfSgDrG-9fG_jopx8ks5q_FmOgaJpZM4K1QSi> .  <https://github.com/notifications/beacon/AWbxIFoF4AAeH0S0hNhY_g1ic5YjhEnPks5q_FmOgaJpZM4K1QSi.gif> \n\n"}}
{"actor":{"display_login":"moconoz"}}