{"action":"created","issue":{"url":"https://api.github.com/repos/rubysolo/dentaku/issues/125","repository_url":"https://api.github.com/repos/rubysolo/dentaku","labels_url":"https://api.github.com/repos/rubysolo/dentaku/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/rubysolo/dentaku/issues/125/comments","events_url":"https://api.github.com/repos/rubysolo/dentaku/issues/125/events","html_url":"https://github.com/rubysolo/dentaku/issues/125","id":230772666,"number":125,"title":"Tokenizer fails when single-quoted string contains apostrophe, even if escaped via backslash","user":{"login":"mattdiamond","id":674060,"avatar_url":"https://avatars1.githubusercontent.com/u/674060?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdiamond","html_url":"https://github.com/mattdiamond","followers_url":"https://api.github.com/users/mattdiamond/followers","following_url":"https://api.github.com/users/mattdiamond/following{/other_user}","gists_url":"https://api.github.com/users/mattdiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdiamond/subscriptions","organizations_url":"https://api.github.com/users/mattdiamond/orgs","repos_url":"https://api.github.com/users/mattdiamond/repos","events_url":"https://api.github.com/users/mattdiamond/events{/privacy}","received_events_url":"https://api.github.com/users/mattdiamond/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-23T16:38:57Z","updated_at":"2017-05-23T16:58:36Z","closed_at":"2017-05-23T16:58:36Z","body":"If I pass in a string with apostrophes escaped:\r\n\r\n    calculator.evaluate(\"process_location('martha\\'s vineyard')\")\r\n\r\nthe result is:\r\n\r\n    RuntimeError: parse error at: '')'\r\n\r\nI think I understand why this is happening: the tokenizer treats `martha\\` as a single-quoted string, causing it to fail when it encounters the actual end-quote. However, I'm unsure how to handle this issue. What's the best way to escape an apostrophe in this situation? I assumed it could be escaped with a backslash, but apparently not."},"comment":{"url":"https://api.github.com/repos/rubysolo/dentaku/issues/comments/303465957","html_url":"https://github.com/rubysolo/dentaku/issues/125#issuecomment-303465957","issue_url":"https://api.github.com/repos/rubysolo/dentaku/issues/125","id":303465957,"user":{"login":"mattdiamond","id":674060,"avatar_url":"https://avatars1.githubusercontent.com/u/674060?v=3","gravatar_id":"","url":"https://api.github.com/users/mattdiamond","html_url":"https://github.com/mattdiamond","followers_url":"https://api.github.com/users/mattdiamond/followers","following_url":"https://api.github.com/users/mattdiamond/following{/other_user}","gists_url":"https://api.github.com/users/mattdiamond/gists{/gist_id}","starred_url":"https://api.github.com/users/mattdiamond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattdiamond/subscriptions","organizations_url":"https://api.github.com/users/mattdiamond/orgs","repos_url":"https://api.github.com/users/mattdiamond/repos","events_url":"https://api.github.com/users/mattdiamond/events{/privacy}","received_events_url":"https://api.github.com/users/mattdiamond/received_events","type":"User","site_admin":false},"created_at":"2017-05-23T16:58:36Z","updated_at":"2017-05-23T16:58:36Z","body":"Thanks for the reply... I've switched to double quotes to solve the issue."}}
{"actor":{"display_login":"mattdiamond"}}