dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

function_call.go (543B)


      1 package indentation_tests
      2 
      3 func _() {
      4 	foo(bar(
      5 		baz(func() {
      6 			qux.hi = "there"
      7 		}),
      8 		baz(func() {
      9 			qux.hi = "there"
     10 		}),
     11 	))
     12 
     13 	switch {
     14 	case foo:
     15 	}
     16 
     17 	unrelated(t)
     18 	foo([]int{
     19 		123,
     20 	}, func() {
     21 		return
     22 	})
     23 
     24 
     25 	foo(
     26 		func() {
     27 			func() {
     28 			}
     29 		})
     30 
     31 	foo(
     32 		foo(
     33 			1,
     34 		))
     35 
     36 
     37 	foo(
     38 		1,
     39 	)
     40 
     41 	foo(
     42 		foo(
     43 			1,
     44 		))
     45 
     46 	foo(
     47 		foo(
     48 			1,
     49 		),
     50 	)
     51 
     52 	foo(foo(
     53 		1,
     54 	))
     55 
     56 	foo(1 +
     57 		2)
     58 
     59 
     60 	foo(foo(
     61 		1,
     62 	),
     63 	)
     64 
     65 	foo.
     66 		bar(func(i int) (a b) {
     67 
     68 		})
     69 
     70 	foo ||
     71 		bar &&
     72 			baz(func() {
     73 				X
     74 			})
     75 
     76 	foo &&
     77 		func() bool {
     78 			return X
     79 		}()
     80 }