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 @@ -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 (
You can’t perform that action at this time.
0 commit comments