-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Python] Add syntax support for sphinx-style doc comments
Sphinx (the most common Python documentation tool) uses `#:` comments to signal documentation comments for its "autodoc" module. There is no known overlap with other comment punctuation, so this should be a safe addition. `TM_COMMENT_START_2` is also added to be able to undo the comment using `toggle_comment`, but unfortunately it does not work like this currently because `Default/comment.py` does not prioritize the longest prefix match of all available comment styles but we don't want this style to be the default. https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#directive-autoattribute
- Loading branch information
1 parent
a5cde86
commit bbc745c
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters