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: redirect.github.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:28f3e64a-c07b-036e-b766-af4826b5f4df |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6A0:3BE8E2:74C2A:9CCC4:696B5887 |
| html-safe-nonce | b1c818393660fcb6ef07c1fac2cad3caa57ee180a33f7a4f773c2e943ab6b1ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkEwOjNCRThFMjo3NEMyQTo5Q0NDNDo2OTZCNTg4NyIsInZpc2l0b3JfaWQiOiI4NDg2ODE3NjYwMjYxODQ5MjIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e72d1200d9073668541ae9b26d32f011ed45f40c67206a514532e442a73cc7a9 |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width