Title: Complex string incorrectly highlights as quoted symbol · Issue #449 · vim-ruby/vim-ruby · GitHub
Open Graph Title: Complex string incorrectly highlights as quoted symbol · Issue #449 · vim-ruby/vim-ruby
X Title: Complex string incorrectly highlights as quoted symbol · Issue #449 · vim-ruby/vim-ruby
Description: Given: puts("a#{":b"}c") The inner ": sequence pairs with the opening quote, making a part of a quoted symbol hash key. The #{..} subexpression itself still highlights correctly, but c is not part of any quoted construct (and consequentl...
Open Graph Description: Given: puts("a#{":b"}c") The inner ": sequence pairs with the opening quote, making a part of a quoted symbol hash key. The #{..} subexpression itself still highlights correctly, but c is not part ...
X Description: Given: puts("a#{":b"}c") The inner ": sequence pairs with the opening quote, making a part of a quoted symbol hash key. The #{..} subexpression itself still highlights corr...
Opengraph URL: https://github.com/vim-ruby/vim-ruby/issues/449
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Complex string incorrectly highlights as quoted symbol","articleBody":"Given:\r\n\r\n```\r\nputs(\"a#{\":b\"}c\")\r\n```\r\n\r\nThe inner `\":` sequence pairs with the opening quote, making `a` part of a quoted symbol hash key. The `#{..}` subexpression itself still highlights correctly, but `c` is not part of any quoted construct (and consequently the closing quote instead starts a new string, messing up the rest of the file).\r\n\r\nThis feels like it might be unsolvably edge-casey, but I'm regularly astounded by how well this syntax handles very questionable code, so I figured it's at least worth reporting. 🤷🏻♂️\r\n\r\n\r\nI encountered this pattern in the wild in this file: https://github.com/rails/rails/blob/40272988cec849c734ec02cfa89ff830ae019d9e/actionpack/lib/action_controller/metal/strong_parameters.rb#L51","author":{"url":"https://github.com/matthewd","@type":"Person","name":"matthewd"},"datePublished":"2022-05-24T14:44:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/449/vim-ruby/issues/449"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:397ba74d-6612-15ac-9b46-3ba5690fd41b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81EE:1A4D4E:1CDFE3:281D09:6965222C |
| html-safe-nonce | 812bb9a666e2ddb78913ae69c89afdd9124fdb8e386eddea7c5034968fd808d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUVFOjFBNEQ0RToxQ0RGRTM6MjgxRDA5OjY5NjUyMjJDIiwidmlzaXRvcl9pZCI6IjIzNzQzODQ4NjA3NTU0Njg4NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c10c55fa070de86c8ba1b12d374eac203210c561f8a2ca55529d22ab7f342b02 |
| hovercard-subject-tag | issue:1246670809 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vim-ruby/vim-ruby/449/issue_layout |
| twitter:image | https://opengraph.githubassets.com/64978ca05c3853b4109e21f67718084ea3cc88d9db71bbac92370696b6f09a2b/vim-ruby/vim-ruby/issues/449 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/64978ca05c3853b4109e21f67718084ea3cc88d9db71bbac92370696b6f09a2b/vim-ruby/vim-ruby/issues/449 |
| og:image:alt | Given: puts("a#{":b"}c") The inner ": sequence pairs with the opening quote, making a part of a quoted symbol hash key. The #{..} subexpression itself still highlights correctly, but c is not part ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | matthewd |
| hostname | github.com |
| expected-hostname | github.com |
| None | 78ed63d2e65e1c05681fba8eb2bd7ca09088f264570071f03eaf49d14d9bad87 |
| turbo-cache-control | no-preview |
| go-import | github.com/vim-ruby/vim-ruby git https://github.com/vim-ruby/vim-ruby.git |
| octolytics-dimension-user_id | 17170 |
| octolytics-dimension-user_login | vim-ruby |
| octolytics-dimension-repository_id | 34465 |
| octolytics-dimension-repository_nwo | vim-ruby/vim-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34465 |
| octolytics-dimension-repository_network_root_nwo | vim-ruby/vim-ruby |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d0bd2cfa31184bb64dc21a57a0fa776eb79accc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width