Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

improved folding in various cases#715

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fmv1992 merged 7 commits intopython-mode:developfromfmv1992:develop
Feb 6, 2017
Merged

improved folding in various cases#715

fmv1992 merged 7 commits intopython-mode:developfromfmv1992:develop
Feb 6, 2017

Conversation

fmv1992
Copy link
Contributor

Improved folding.vim file to handle a couple of cases:

  • Docstrings get folded even if not directly on the line below a def statement:
def such_a_long_indented_function_could_not_fit_in_one_line(        arg1=None,        arg2=None):    u""" This is my docstring.    This multiline docstring will be folded.    """    s = ''' This simple string        will not be folded as a docstring. '''    """ This comment will also be folded        be folded as a docstring.    """
  • Improved docstring flexibility: u""" and """ and ''' and u''' are recognized as possible docstrings.

  • Commented the code for improved readability

  • Added a couple of exceptions falsely triggering folding such as@author (a common string in a comment) being recognized as a decorator

@fmv1992fmv1992 merged commitd113cff intopython-mode:developFeb 6, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@fmv1992

[8]ページ先頭

©2009-2025 Movatter.jp