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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:de61817e-2688-3729-c8ae-afdb9c390800 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | DCAA:1B57E1:1F6E2F2:288A525:696C7D59 |
| html-safe-nonce | 6d152a483ad57625d6ea4bde2905ebe4eb57f873651f983f8acb80b6ead2fdfb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQ0FBOjFCNTdFMToxRjZFMkYyOjI4OEE1MjU6Njk2QzdENTkiLCJ2aXNpdG9yX2lkIjoiMjU4MDI5MTEwMzM2OTIzMTcwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 89bdfb3f1898bdc32ea7a85c3f54f907efd337eb9b9a02a1535338fdb7823cdd |
| hovercard-subject-tag | pull_request:259468142 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 38f4d3209478aaeff3ef254f1919defede86af41 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width