Commit 04e7f95
committed
Add support for indenting method chaining
Support indenting chained method calls:
local colon_out = self.kitchen
:getContents()
:getCheese()
:enjoyCheese(self
:mouth()
:open()
:extendTongue())
:eatCheese()
:digestCheese()
local dot_out = self.kitchen
.getContents()
.getCheese()
.enjoyCheese(self
.mouth()
.open()
.extendTongue())
.eatCheese()
.digestCheese()1 parent c7c5b70 commit 04e7f95
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
101 | 113 | | |
102 | 114 | | |
103 | 115 | | |
| |||
0 commit comments