Skip to content

Commit b6370dc

Browse files
committed
Two more indents, one failing.
1 parent 44cd9c2 commit b6370dc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

spec/indent_spec.lua

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,42 @@ describe('indent', function()
173173
end)
174174
)
175175

176+
it(
177+
'dedents after double indented type with braces in tactic mode',
178+
helpers.clean_buffer(
179+
[[
180+
theorem foo :
181+
bar {(n : ℤ)} = baz := by
182+
]],
183+
function()
184+
helpers.feed 'Gobaz'
185+
assert.contents.are [[
186+
theorem foo :
187+
bar {(n : ℤ)} = baz := by
188+
baz
189+
]]
190+
end
191+
)
192+
)
193+
194+
it(
195+
'dedents after double indented type with braces in term mode',
196+
helpers.clean_buffer(
197+
[[
198+
theorem foo :
199+
bar {(n : ℤ)} = baz :=
200+
]],
201+
function()
202+
helpers.feed 'Gobaz'
203+
assert.contents.are [[
204+
theorem foo :
205+
bar {(n : ℤ)} = baz :=
206+
baz
207+
]]
208+
end
209+
)
210+
)
211+
176212
it(
177213
'indents inside anonymous literals',
178214
helpers.clean_buffer(

0 commit comments

Comments
 (0)