{"action":"created","issue":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/715","repository_url":"https://api.github.com/repos/sublimehq/Packages","labels_url":"https://api.github.com/repos/sublimehq/Packages/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/sublimehq/Packages/issues/715/comments","events_url":"https://api.github.com/repos/sublimehq/Packages/issues/715/events","html_url":"https://github.com/sublimehq/Packages/issues/715","id":192627094,"number":715,"title":"Interpolated strings","user":{"login":"FichteFoll","id":931051,"avatar_url":"https://avatars1.githubusercontent.com/u/931051?v=4","gravatar_id":"","url":"https://api.github.com/users/FichteFoll","html_url":"https://github.com/FichteFoll","followers_url":"https://api.github.com/users/FichteFoll/followers","following_url":"https://api.github.com/users/FichteFoll/following{/other_user}","gists_url":"https://api.github.com/users/FichteFoll/gists{/gist_id}","starred_url":"https://api.github.com/users/FichteFoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FichteFoll/subscriptions","organizations_url":"https://api.github.com/users/FichteFoll/orgs","repos_url":"https://api.github.com/users/FichteFoll/repos","events_url":"https://api.github.com/users/FichteFoll/events{/privacy}","received_events_url":"https://api.github.com/users/FichteFoll/received_events","type":"User","site_admin":false},"labels":[{"id":502086692,"url":"https://api.github.com/repos/sublimehq/Packages/labels/RFC","name":"RFC","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-30T17:21:43Z","updated_at":"2018-02-19T16:33:12Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I've compiled a few scope names for languages that have interpolation in strings (incomplete due to lack of time right now):\r\n\r\nBash: `$(fk yea)` -> `string.interpolated`; `\"${apples}\"` -> `variable.other.bracket`\r\nC#: not implemented\r\nGroovy: `source.groovy.embedded.source`\r\nJavaScript: `string.template` into `source.js.embedded.template`\r\nPerl: \r\nPhp:\r\nPython: see https://github.com/sublimehq/Packages/issues/715#issuecomment-289097254 (`meta.string.interpolated` for the entire string and `meta.interpolation source.python.embedded` for the interpolated parts)\r\nRuby: `source.ruby.embedded.source`\r\nScala:\r\n\r\n(for examples, see https://en.wikipedia.org/wiki/String_interpolation)\r\n\r\nAll these add on top of the string scope and do not clear it. Punctuation scopes are inconsistent.\r\nThis raises the following items:\r\n\r\n1) I remember that you, @wbond, considered using `clear_scopes` for interpolated strings to clear the string scope so that the interpolated code would not be using the string scoping. I like this a lot, and will most likely use it for Python's f-strings. We should apply that to the other syntaxes too, however.\r\n\r\n2) I intend to also add `punctuation.definition.string.interpolation.begin` and `.end` respectively, so that color schemes could target `punctuation.definition.string` and would match all the string edge punctuation.\r\n\r\n3) It seems like `source.<language>.embedded.source` is the most common scope for interpolated sections. Should this be the standard?"},"comment":{"url":"https://api.github.com/repos/sublimehq/Packages/issues/comments/366744149","html_url":"https://github.com/sublimehq/Packages/issues/715#issuecomment-366744149","issue_url":"https://api.github.com/repos/sublimehq/Packages/issues/715","id":366744149,"user":{"login":"FichteFoll","id":931051,"avatar_url":"https://avatars1.githubusercontent.com/u/931051?v=4","gravatar_id":"","url":"https://api.github.com/users/FichteFoll","html_url":"https://github.com/FichteFoll","followers_url":"https://api.github.com/users/FichteFoll/followers","following_url":"https://api.github.com/users/FichteFoll/following{/other_user}","gists_url":"https://api.github.com/users/FichteFoll/gists{/gist_id}","starred_url":"https://api.github.com/users/FichteFoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FichteFoll/subscriptions","organizations_url":"https://api.github.com/users/FichteFoll/orgs","repos_url":"https://api.github.com/users/FichteFoll/repos","events_url":"https://api.github.com/users/FichteFoll/events{/privacy}","received_events_url":"https://api.github.com/users/FichteFoll/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T16:33:12Z","updated_at":"2018-02-19T16:33:12Z","author_association":"CONTRIBUTOR","body":"Newest discussion on this topic: #1432."}}
{"actor":{"display_login":"FichteFoll"}}