Title: Incorrect function highlighting in raw format (rf) string · Issue #267 · MagicStack/MagicPython · GitHub
Open Graph Title: Incorrect function highlighting in raw format (rf) string · Issue #267 · MagicStack/MagicPython
X Title: Incorrect function highlighting in raw format (rf) string · Issue #267 · MagicStack/MagicPython
Description: I'm getting some incorrect highlighting inside an rf string, in particular for the . and (1) portions, as well as the curly braces. Take a look: Editor name and version: VSCode Platform: Windows Color scheme: Default MagicPython version:...
Open Graph Description: I'm getting some incorrect highlighting inside an rf string, in particular for the . and (1) portions, as well as the curly braces. Take a look: Editor name and version: VSCode Platform: Windows Co...
X Description: I'm getting some incorrect highlighting inside an rf string, in particular for the . and (1) portions, as well as the curly braces. Take a look: Editor name and version: VSCode Platform: Window...
Opengraph URL: https://github.com/MagicStack/MagicPython/issues/267
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect function highlighting in raw format (rf) string","articleBody":"I'm getting some incorrect highlighting inside an rf string, in particular for the `.` and `(1)` portions, as well as the curly braces. Take a look:\r\n\r\n* **Editor name and version**: VSCode\r\n* **Platform**: Windows\r\n* **Color scheme**: Default\r\n* **MagicPython version**: v1.1.0\r\n* **A sreenshot**: \r\n\r\n* **5-10 lines of surrounding code**:\r\n```\r\nfor item in (\r\n re.split(rf\" ?\\r \u003cBR\u003e (?=\\d+{match.group(1)})\", text)\r\n if (match := re.match(r\"1( ?[-.])\", text)) is not None\r\n else [text]\r\n):\r\n```\r\n","author":{"url":"https://github.com/cabralpinto","@type":"Person","name":"cabralpinto"},"datePublished":"2024-08-14T15:55:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/267/MagicPython/issues/267"}
| 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:7ed29fa9-89f7-d5be-8f80-7598b556c24d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7F8:E5B7D:7A1FC2:AC7D9C:696E37D5 |
| html-safe-nonce | 8411b1981e7da8a1f1da2d8562632aa30ebbd8719d3cbe02ae2cb2da77f8e818 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0Y4OkU1QjdEOjdBMUZDMjpBQzdEOUM6Njk2RTM3RDUiLCJ2aXNpdG9yX2lkIjoiNDM2NTk0ODA0MDQyNjQzNjU2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 41877d91c1ec1941d231bb7c58ae73c5696dc0382513f2667d0a62d5bed35f7b |
| hovercard-subject-tag | issue:2466234288 |
| 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/267/issue_layout |
| twitter:image | https://opengraph.githubassets.com/62ba08e93290e5f7953d8ba98a43f1017547843c52347d883b1ff245d20517fc/MagicStack/MagicPython/issues/267 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/62ba08e93290e5f7953d8ba98a43f1017547843c52347d883b1ff245d20517fc/MagicStack/MagicPython/issues/267 |
| og:image:alt | I'm getting some incorrect highlighting inside an rf string, in particular for the . and (1) portions, as well as the curly braces. Take a look: Editor name and version: VSCode Platform: Windows Co... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cabralpinto |
| hostname | github.com |
| expected-hostname | github.com |
| None | b39958d54b39d52b9fc890ff25687d2383a83e003512d4480499b2dbd046839f |
| 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 | fba10be4ea34590240b2f4a625fc807362c2d5b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width