1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# No indentation before the function definition
pass
# Indented function definition
pass
# There are multiple non-logical newlines (blank lines) in the `if` body
pass
# There are trailing whitespaces in the blank line inside the `if` body
pass
# The lexer is nested with multiple levels of parentheses
# The outer parenthesis is closed but the inner bracket isn't
# The parser tries to recover from an unclosed `]` when the current token is `)`. This
# test is to make sure it emits a `NonLogicalNewline` token after `b`.
# F-strings uses normal list parsing, so test those as well