Title: scheme.py: wrong match of ASCII digits · Issue #166 · frescobaldi/python-ly · GitHub
Open Graph Title: scheme.py: wrong match of ASCII digits · Issue #166 · frescobaldi/python-ly
X Title: scheme.py: wrong match of ASCII digits · Issue #166 · frescobaldi/python-ly
Description: In all regular expressions defined by lex/scheme.py, the sequence "\d" is erroneously used for matching an ASCII digit. By default, in Python 3 that sequence matches too much: all Unicode digits. For example, it matches the full-width di...
Open Graph Description: In all regular expressions defined by lex/scheme.py, the sequence "\d" is erroneously used for matching an ASCII digit. By default, in Python 3 that sequence matches too much: all Unicode digits. F...
X Description: In all regular expressions defined by lex/scheme.py, the sequence "\d" is erroneously used for matching an ASCII digit. By default, in Python 3 that sequence matches too much: all Unicode...
Opengraph URL: https://github.com/frescobaldi/python-ly/issues/166
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"scheme.py: wrong match of ASCII digits","articleBody":"In all regular expressions defined by lex/scheme.py, the sequence \"\\d\" is erroneously used for matching an ASCII digit. By default, in Python 3 that sequence matches too much: all Unicode digits. For example, it matches the full-width digit \"4\" (U+FF14), which is not a legal ASCII digit, as required by the lilypond syntax.\r\n\r\nThis generates wrong colorization patterns in \"Frescobaldi\" when a source file contains Unicode digits outside the ASCII set.\r\n\r\nThe \"\\d\" sequence should be replaced with the safer \"[0-9]\" sequence in all regular expressions where an ASCII digit is intended.","author":{"url":"https://github.com/locsite","@type":"Person","name":"locsite"},"datePublished":"2024-01-11T10:31:04Z","url":"https://github.com/frescobaldi/python-ly/issues/166"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:5356895d-06ea-8d07-799e-c7f402d41d26 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B488:12186C:DB138E:1219BE4:6B09BD8E |
| html-safe-nonce | 3d1cbbebcf0ce526fe95e418bc28da19340e2e77a3af95f8a76a62fd7cc5912c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDg4OjEyMTg2QzpEQjEzOEU6MTIxOUJFNDo2QjA5QkQ4RSIsInZpc2l0b3JfaWQiOiI1MzUxNTQwNDE5NTI2NzcwMDYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8be81775d28e0bf26ee0f6121dff0a25cea02ee2581729fcd3468b24b8747af3 |
| hovercard-subject-tag | issue:2076255978 |
| 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/frescobaldi/python-ly/166/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4cb9ae41c158da8a958ec481ae929539eb78f6c1ba71431593f8ff8ed285ad2f/frescobaldi/python-ly/issues/166 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4cb9ae41c158da8a958ec481ae929539eb78f6c1ba71431593f8ff8ed285ad2f/frescobaldi/python-ly/issues/166 |
| og:image:alt | In all regular expressions defined by lex/scheme.py, the sequence "\d" is erroneously used for matching an ASCII digit. By default, in Python 3 that sequence matches too much: all Unicode digits. F... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | locsite |
| hostname | github.com |
| expected-hostname | github.com |
| None | 29e6866c4c5b6697a062df08d37fa80bbfb75810ca4280c0d277f04956012d39 |
| turbo-cache-control | no-preview |
| go-import | github.com/frescobaldi/python-ly git https://github.com/frescobaldi/python-ly.git |
| octolytics-dimension-user_id | 19853952 |
| octolytics-dimension-user_login | frescobaldi |
| octolytics-dimension-repository_id | 29728425 |
| octolytics-dimension-repository_nwo | frescobaldi/python-ly |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 29728425 |
| octolytics-dimension-repository_network_root_nwo | frescobaldi/python-ly |
| 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 | e72aac8801621433bb0313888fbbe243f5998abc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width