github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/build/testdata/051.in (about) 1 foo(name='foo', 2 srcs=[bar]) 3 4 aaa; bbb 5 ccc 6 7 ddd 8 # multiline 9 # comment 10 eee 11 12 fff 13 ggg 14 15 def function( 16 # This shouldn't mess with indentation counting 17 x, y = z 18 ): 19 aaa 20 bbb 21 def g(a, s, 22 d # this is d 23 ): # this is function definition 24 ccc 25 # Misalingned comments 26 # are not a syntax error 27 ddd 28 def h(a, s = d): # this is h 29 eee 30 31 def k(g): g += 1; return g 32 33 for x in y: print(y) 34 35 if x: print(x) 36 elif y: print(y) 37 else: print(z); print(y); print(x) 38 39 if x: print(x) 40 41 elif y: print(y) 42 43 44 else: print(z); print(y); print(x) 45 46 def i(): 47 def j(): 48 return h([1], 49 [2]) # returns h 50 51 return u()+w 52 53 54 for b in a: # first 55 for c, d in b: # second 56 for ((e, f), g) in zip(c, d): # third 57 pass 58 59 60 if foo in bar: 61 for f in foo: 62 # loop 63 f() 64 else if True: 65 a = b 66 67 else: 68 if False: 69 70 #assign 71 b=a 72 else: 73 74 (a,b)=(b,a) 75 76 if foo: 77 bar 78 if foo: 79 bar 80 #comment 81 bar 82 83 bar 84 def a(name, foo=True, **kwargs): 85 # comment here 86 return