Title: Missing the f-prefix on an f-string is hard to notice · Issue #65 · vim-python/python-syntax · GitHub
Open Graph Title: Missing the f-prefix on an f-string is hard to notice · Issue #65 · vim-python/python-syntax
X Title: Missing the f-prefix on an f-string is hard to notice · Issue #65 · vim-python/python-syntax
Description: As python 3.6 gave us f-strings it's I've been using them more over the ol' .format() syntax. Sadly, the syntax is highlighting strings that have curly braces but have neither f-string prefix or .format suffix. The third statement ("{hel...
Open Graph Description: As python 3.6 gave us f-strings it's I've been using them more over the ol' .format() syntax. Sadly, the syntax is highlighting strings that have curly braces but have neither f-string prefix or .f...
X Description: As python 3.6 gave us f-strings it's I've been using them more over the ol' .format() syntax. Sadly, the syntax is highlighting strings that have curly braces but have neither f-string ...
Opengraph URL: https://github.com/vim-python/python-syntax/issues/65
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing the f-prefix on an f-string is hard to notice","articleBody":"As python 3.6 gave us f-strings it's I've been using them more over the ol' `.format()` syntax.\r\n\r\nSadly, the syntax is highlighting strings that have curly braces but have neither f-string prefix or `.format` suffix.\r\n\r\n\r\n\r\nThe third statement (`\"{hello}\"`) shouldn't show the curly brace because that is not doing anything fancy with the string. It's just a string.\r\n\r\nThis might lead me as a developer to miss putting the f-prefix before a string, as the curly braces are giving an indication that they are treated as some sort of templates.\r\n\r\nAny thoughts on this?","author":{"url":"https://github.com/Lilja","@type":"Person","name":"Lilja"},"datePublished":"2020-03-26T22:46:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/65/python-syntax/issues/65"}
| 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:a21f94cc-b18f-f200-6909-f24a1af69610 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C262:32DB3A:B1975F:F90FA7:69779E04 |
| html-safe-nonce | 4312d4a4b70b9a6f14e2bf0fbee4267bea2e0c7abbc33d032659fa877683ec6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjYyOjMyREIzQTpCMTk3NUY6RjkwRkE3OjY5Nzc5RTA0IiwidmlzaXRvcl9pZCI6IjMxMTEyODU2NzU0NzUzMTIxMzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8d83da4f2436cf4cce0d75d8357239e9f315b4e0da32a24637550b1c701129f7 |
| hovercard-subject-tag | issue:588773519 |
| 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-python/python-syntax/65/issue_layout |
| twitter:image | https://opengraph.githubassets.com/60e23f52be175570edb594ad93fafb4e8463d741f0b245bec1fe980d1b6a4432/vim-python/python-syntax/issues/65 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/60e23f52be175570edb594ad93fafb4e8463d741f0b245bec1fe980d1b6a4432/vim-python/python-syntax/issues/65 |
| og:image:alt | As python 3.6 gave us f-strings it's I've been using them more over the ol' .format() syntax. Sadly, the syntax is highlighting strings that have curly braces but have neither f-string prefix or .f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lilja |
| hostname | github.com |
| expected-hostname | github.com |
| None | e10aafdf5297192c9b24eb4c1705326a9448d90025c2907ca863f7e62d40627d |
| turbo-cache-control | no-preview |
| go-import | github.com/vim-python/python-syntax git https://github.com/vim-python/python-syntax.git |
| octolytics-dimension-user_id | 25825542 |
| octolytics-dimension-user_login | vim-python |
| octolytics-dimension-repository_id | 82203847 |
| octolytics-dimension-repository_nwo | vim-python/python-syntax |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82203847 |
| octolytics-dimension-repository_network_root_nwo | vim-python/python-syntax |
| 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 | 6ba450e9e3f0dbffd9b797b93684cf55e32593e3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width