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

Font-lock support for keywords in numpydoc docstrings #6

Open
twmr opened this issue May 11, 2021 · 3 comments
Open

Font-lock support for keywords in numpydoc docstrings #6

twmr opened this issue May 11, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@twmr
Copy link

twmr commented May 11, 2021

What is your stance about supporting font-locking of numpydoc keywords docstrings (similar to the code in https://github.com/glyph/python-docstring-mode/blob/master/python-docstring.el)? Do you think that it makes sense to add it to your numpydoc.el pkg or should it be part of a separate pkg?

@douglasdavis
Copy link
Owner

douglasdavis commented May 11, 2021 via email

@twmr
Copy link
Author

twmr commented May 12, 2021

I would lke to see the RST sections fontified, e.g. Parameters and Returns. The python-docstring-mode currently fontifies RST roles, e.g., :func:abc but not the numpydoc style sections. We could also fontify the code in the Example section.

@douglasdavis
Copy link
Owner

douglasdavis commented May 17, 2021

Ah I see, thanks for the explanation. I personally prefer a hard visual separation between code and docstrings in my Emacs buffers, but I'd be happy to support this inside of numpydoc.el as a minor mode. I'd welcome and would be happy to test a PR.

@douglasdavis douglasdavis added the enhancement New feature or request label Jun 11, 2021
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