File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,42 @@ describe('indent', function()
191191 end )
192192 )
193193
194+ it (
195+ ' dedents after double indented type with braces in tactic mode' ,
196+ helpers .clean_buffer (
197+ [[
198+ theorem foo :
199+ bar {(n : ℤ)} = baz := by
200+ ]] ,
201+ function ()
202+ helpers .feed ' Gobaz'
203+ assert .contents .are [[
204+ theorem foo :
205+ bar {(n : ℤ)} = baz := by
206+ baz
207+ ]]
208+ end
209+ )
210+ )
211+
212+ it (
213+ ' dedents after double indented type with braces in term mode' ,
214+ helpers .clean_buffer (
215+ [[
216+ theorem foo :
217+ bar {(n : ℤ)} = baz :=
218+ ]] ,
219+ function ()
220+ helpers .feed ' Gobaz'
221+ assert .contents .are [[
222+ theorem foo :
223+ bar {(n : ℤ)} = baz :=
224+ baz
225+ ]]
226+ end
227+ )
228+ )
229+
194230 it (
195231 ' indents inside anonymous literals' ,
196232 helpers .clean_buffer (
You can’t perform that action at this time.
0 commit comments