Skip to content

Commit

Permalink
Two more indents, one failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Feb 12, 2025
1 parent 1c04496 commit 6039b4b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions spec/indent_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,42 @@ describe('indent', function()
end)
)

it(
'dedents after double indented type with braces in tactic mode',
helpers.clean_buffer(
[[
theorem foo :
bar {(n : ℤ)} = baz := by
]],
function()
helpers.feed 'Gobaz'
assert.contents.are [[
theorem foo :
bar {(n : ℤ)} = baz := by
baz
]]
end
)
)

it(
'dedents after double indented type with braces in term mode',
helpers.clean_buffer(
[[
theorem foo :
bar {(n : ℤ)} = baz :=
]],
function()
helpers.feed 'Gobaz'
assert.contents.are [[
theorem foo :
bar {(n : ℤ)} = baz :=
baz
]]
end
)
)

it(
'indents inside anonymous literals',
helpers.clean_buffer(
Expand Down

0 comments on commit 6039b4b

Please sign in to comment.