Title:
Open Graph Title:
X Title:
Description: Hello! Thank you for all this amazing stuff around! I have identified a misbehaviour of lexer. When assignment is proceeded by a numeric, it is ignored by the lexer and is not reflected in the music document. from ly.document import Docu...
Open Graph Description: Hello! Thank you for all this amazing stuff around! I have identified a misbehaviour of lexer. When assignment is proceeded by a numeric, it is ignored by the lexer and is not reflected in the musi...
X Description: Hello! Thank you for all this amazing stuff around! I have identified a misbehaviour of lexer. When assignment is proceeded by a numeric, it is ignored by the lexer and is not reflected in the musi...
Opengraph URL: https://github.com/frescobaldi/python-ly/issues/179
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\u003cAssignment> not recognized when followed by a integer","articleBody":"Hello! Thank you for all this amazing stuff around!\n\nI have identified a misbehaviour of lexer. When assignment is proceeded by a numeric, it is ignored by the lexer and is not reflected in the music document.\n\n```Python3\nfrom ly.document import Document\nfrom ly.music import document\n\nstr_INCORRECT_result = \"\"\"\n\\\\version \"2.24.3\"\n\\\\include \"def.ly\"\nnumeric = 2 % this line messes up the lexer\nassignment = \\\\relative c {\n a4\n}\n\"\"\"\n\nstr_correct_result = \"\"\"\n\\\\version \"2.24.3\"\n\\\\include \"def.ly\"\nnumeric = \"2\"\nassignment = \\\\relative c {\n a4\n}\n\"\"\"\n\nd_correct = document(Document(str_correct_result))\nd_INCORRECT = document(Document(str_INCORRECT_result))\n\nprint(d_correct.dump())\n# \u003cDocument>\n# \u003cVersion '\\\\version'>\n# \u003cString '\"'>\n# \u003cInclude '\\\\include'>\n# \u003cString '\"'>\n# \u003cAssignment 'numeric'>\n# \u003cString '\"'>\n# \u003cAssignment 'assignment'> \u003c-- CORRECT\n# \u003cRelative '\\\\relative'>\n# \u003cNote 'c'>\n# \u003cMusicList '{'>\n# \u003cNote 'a'>\n# \u003cDuration '4'>\n\nprint(d_INCORRECT.dump())\n# \u003cDocument>\n# \u003cVersion '\\\\version'>\n# \u003cString '\"'>\n# \u003cInclude '\\\\include'>\n# \u003cString '\"'>\n# \u003cAssignment 'numeric'>\n# \u003cUnpitched>\n# \u003cDuration '2'>\n# \u003cRelative '\\\\relative'> \u003c-- NOT CORRECT – \u003cAssignment> MISSING!\n# \u003cNote 'c'>\n# \u003cMusicList '{'>\n# \u003cNote 'a'>\n# \u003cDuration '4'>\n```","author":{"url":"https://github.com/ArturJD96","@type":"Person","name":"ArturJD96"},"datePublished":"2025-06-19T18:25:19Z","url":"https://github.com/frescobaldi/python-ly/issues/179"}
| 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:777627fe-ec74-3748-caeb-38a4657083ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A33A:2EE5D4:B70080:F35CE7:6B09B727 |
| html-safe-nonce | 5fdc849400b3dc55b1eddac3b0c5589fc7f0982d2e5085e62aece0912653ea96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzNBOjJFRTVENDpCNzAwODA6RjM1Q0U3OjZCMDlCNzI3IiwidmlzaXRvcl9pZCI6IjM0MDYzNzE3Mjk5OTA4NTg1MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 032d16761633979a98d8e8fa6b78c104f8322ddd87e0790896b9ff94a6d5f311 |
| hovercard-subject-tag | issue:3161070361 |
| 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/179/issue_layout |
| twitter:image | https://opengraph.githubassets.com/118a8c817edac8205c684f7af49361e78f092339de9942e941ab11534d0ce949/frescobaldi/python-ly/issues/179 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/118a8c817edac8205c684f7af49361e78f092339de9942e941ab11534d0ce949/frescobaldi/python-ly/issues/179 |
| og:image:alt | Hello! Thank you for all this amazing stuff around! I have identified a misbehaviour of lexer. When assignment is proceeded by a numeric, it is ignored by the lexer and is not reflected in the musi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ArturJD96 |
| 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