Title: Allow multiline strings to be rendered as comments by wmvanvliet · Pull Request #57 · vim-python/python-syntax · GitHub
Open Graph Title: Allow multiline strings to be rendered as comments by wmvanvliet · Pull Request #57 · vim-python/python-syntax
X Title: Allow multiline strings to be rendered as comments by wmvanvliet · Pull Request #57 · vim-python/python-syntax
Description: Picking this up from #45 So, docstrings are an important part of Python code and one may wish to render them as comments instead of normal strings. However, differentiating when a multiline string is being used as a docstring and when not, is tricky and probably slow. In absence of a perfect solution, I propose the following. We split out multiline strings into their own class pythonMultiString. By default, it is linked to String like we do with so many other string types: highlight link pythonMultiString String So, nothing changes out of the box. However, if users want to assume all multiline strings are docstrings, they can add this to their configs: highlight link pythonMultiString Comment and everyone can be happy.
Open Graph Description: Picking this up from #45 So, docstrings are an important part of Python code and one may wish to render them as comments instead of normal strings. However, differentiating when a multiline string ...
X Description: Picking this up from #45 So, docstrings are an important part of Python code and one may wish to render them as comments instead of normal strings. However, differentiating when a multiline string ...
Opengraph URL: https://github.com/vim-python/python-syntax/pull/57
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:c155f1a7-976f-6c42-fafe-64a5c82d8b59 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DEEC:331E62:319725C:400F6F1:696CC023 |
| html-safe-nonce | c4e568849327c1c87a1406ba7f659cf47983aacb37a2ca055beb5569507206e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUVDOjMzMUU2MjozMTk3MjVDOjQwMEY2RjE6Njk2Q0MwMjMiLCJ2aXNpdG9yX2lkIjoiNTE0MjAyNDQ2MzAzMjU2NTc5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 384ba01e793a1fc6a751f3d51ba98fd595d540a51763e61b4fdd7029c5ebc8f1 |
| hovercard-subject-tag | pull_request:259468142 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/vim-python/python-syntax/pull/57/files |
| twitter:image | https://avatars.githubusercontent.com/u/428273?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/428273?s=400&v=4 |
| og:image:alt | Picking this up from #45 So, docstrings are an important part of Python code and one may wish to render them as comments instead of normal strings. However, differentiating when a multiline string ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31994babd8463b50f2371f63aab0826561f4efe3981ac0ebc4c33e6c41032dbd |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/vim-python/python-syntax git https://github.com/vim-python/python-syntax.git |
| octolytics-dimension-user_id | 25825542 |
| octolytics-dimension-user_login | vim-python |
| octolytics-dimension-repository_id | 82203847 |
| octolytics-dimension-repository_nwo | vim-python/python-syntax |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 82203847 |
| octolytics-dimension-repository_network_root_nwo | vim-python/python-syntax |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f5a202c3c4aefc9cf00c8c78951a1e72eaebebeb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width