Skip to content

Skip doctest regions when searching for open pairs#550

Merged
klen merged 1 commit into
python-mode:developfrom
wilywampa:doctest_indent
Sep 8, 2015
Merged

Skip doctest regions when searching for open pairs#550
klen merged 1 commit into
python-mode:developfrom
wilywampa:doctest_indent

Conversation

@wilywampa
Copy link
Copy Markdown
Contributor

Doctests should be treated the same as strings/comments when searching for open pairs.

Before this change:

class Foo:

    """
    >>> print '{ { }'
    { { }
    """

     def __init__(self):
     pass

After this change (correct indent of 'pass'):

class Foo:

    """
    >>> print '{ { }'
    { { }
    """

     def __init__(self):
         pass

klen added a commit that referenced this pull request Sep 8, 2015
Skip doctest regions when searching for open pairs
@klen klen merged commit 9d6dfb1 into python-mode:develop Sep 8, 2015
@klen
Copy link
Copy Markdown
Collaborator

klen commented Sep 8, 2015

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants