]> git.madduck.net Git - etc/vim.git/blob - tests/data/cases/preview_no_blank_line_before_docstring.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix parser bug where "type" was misinterpreted as a keyword inside a match (#3950)
[etc/vim.git] / tests / data / cases / preview_no_blank_line_before_docstring.py
1 # flags: --preview
2 def line_before_docstring():
3
4     """Please move me up"""
5
6
7 class LineBeforeDocstring:
8
9     """Please move me up"""
10
11
12 class EvenIfThereIsAMethodAfter:
13
14     """I'm the docstring"""
15     def method(self):
16         pass
17
18
19 class TwoLinesBeforeDocstring:
20
21
22     """I want to be treated the same as if I were closer"""
23
24
25 class MultilineDocstringsAsWell:
26
27     """I'm so far
28
29     and on so many lines...
30     """
31
32
33 # output
34
35
36 def line_before_docstring():
37     """Please move me up"""
38
39
40 class LineBeforeDocstring:
41     """Please move me up"""
42
43
44 class EvenIfThereIsAMethodAfter:
45     """I'm the docstring"""
46
47     def method(self):
48         pass
49
50
51 class TwoLinesBeforeDocstring:
52     """I want to be treated the same as if I were closer"""
53
54
55 class MultilineDocstringsAsWell:
56     """I'm so far
57
58     and on so many lines...
59     """