Title: Python f-string syntax highlighting error · Issue #275 · MagicStack/MagicPython · GitHub
Open Graph Title: Python f-string syntax highlighting error · Issue #275 · MagicStack/MagicPython
X Title: Python f-string syntax highlighting error · Issue #275 · MagicStack/MagicPython
Description: In Python files, the syntax highlighting for f-strings is incorrect when the f-string’s expression contains a newline. print(f"{1 }foo") # new line in brace, highlighting incorrect print(f"{1}bar")
Open Graph Description: In Python files, the syntax highlighting for f-strings is incorrect when the f-string’s expression contains a newline. print(f"{1 }foo") # new line in brace, highlighting incorrect print(f"{1}bar")
X Description: In Python files, the syntax highlighting for f-strings is incorrect when the f-string’s expression contains a newline. print(f"{1 }foo") # new line in brace, highlighting incorrect print(...
Opengraph URL: https://github.com/MagicStack/MagicPython/issues/275
X: @github
Domain: Github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python f-string syntax highlighting error","articleBody":"In Python files, the syntax highlighting for f-strings is incorrect when the f-string’s expression contains a newline.\n\n```python\nprint(f\"{1\n}foo\") # new line in brace, highlighting incorrect\nprint(f\"{1}bar\")\n```","author":{"url":"https://github.com/ImAurDev","@type":"Person","name":"ImAurDev"},"datePublished":"2026-05-03T12:25:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/275/MagicPython/issues/275"}
| 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:90ccefc7-7849-2d65-11be-e0667f99cba9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98C0:2F16ED:325B487:33AACBB:6A632499 |
| html-safe-nonce | 46d16e01e532cead7e2a35973a9f0671e56c3c48795dfc490ad15170a66da17c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEMwOjJGMTZFRDozMjVCNDg3OjMzQUFDQkI6NkE2MzI0OTkiLCJ2aXNpdG9yX2lkIjoiNDM1MTIyMTU2Mzk1MjE0NTU2MSIsInJlZ2lvbl9lZGdlIjoic2VhIiwicmVnaW9uX3JlbmRlciI6InNlYSJ9 |
| visitor-hmac | 7551ce4210d82b6c2b6b4726f2eb16b7cf1140942163e01cce891d6a9679f1e5 |
| hovercard-subject-tag | issue:4371790237 |
| 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/MagicStack/MagicPython/275/issue_layout |
| twitter:image | https://opengraph.githubassets.com/72f2f305a6149a274830e72b396b2570ab9e975a069cdca2ca60037c1ecb31b2/MagicStack/MagicPython/issues/275 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/72f2f305a6149a274830e72b396b2570ab9e975a069cdca2ca60037c1ecb31b2/MagicStack/MagicPython/issues/275 |
| og:image:alt | In Python files, the syntax highlighting for f-strings is incorrect when the f-string’s expression contains a newline. print(f"{1 }foo") # new line in brace, highlighting incorrect print(f"{1}bar") |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ImAurDev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| turbo-cache-control | no-preview |
| go-import | github.com/MagicStack/MagicPython git https://github.com/MagicStack/MagicPython.git |
| octolytics-dimension-user_id | 14324950 |
| octolytics-dimension-user_login | MagicStack |
| octolytics-dimension-repository_id | 43982620 |
| octolytics-dimension-repository_nwo | MagicStack/MagicPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43982620 |
| octolytics-dimension-repository_network_root_nwo | MagicStack/MagicPython |
| 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 | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width