Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only match triple quotes for python docstrings #923

Closed
stsewd opened this issue Feb 5, 2021 · 0 comments
Closed

Only match triple quotes for python docstrings #923

stsewd opened this issue Feb 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@stsewd
Copy link
Member

stsewd commented Feb 5, 2021

Using offset and match doesn't work well

((function_definition
  body: (block . (expression_statement (string) @rst)))
 (#match? @rst "^[\"']{3}")
 (#offset! @rst 0 3 0 -3))

That only matches docstrings that are one line length

ref #917 (comment)

@stsewd stsewd added the enhancement New feature or request label Feb 5, 2021
@lewis6991 lewis6991 closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants