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: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:182b3aa3-1475-cdda-cbbb-25474be25d42 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C8D2:336295:7A3CE:A3B8A:697D1632 |
| html-safe-nonce | ac5b66bc88a601fdec2149302b9b598c9d9e356bb898ea6313b15e4545b602a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEQyOjMzNjI5NTo3QTNDRTpBM0I4QTo2OTdEMTYzMiIsInZpc2l0b3JfaWQiOiI4MTgzOTc3Nzg1MzUwMjMxNjAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3bcf155c718f51d4faee5015df42be9939b89a50131c97ce55a0b3135c9f35d0 |
| 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 | 6bac6431e041e40aadf6b728ae7d4714d3e9db06146c32859d7f755bfd99f370 |
| 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 | 16471c97de653e844cc3021141a92460ac261244 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width