Opened 11 years ago

Last modified 11 years ago

#480 new defect

[match]es sometimes screw up indentation

Reported by: coquser Owned by: David Aspinall
Priority: minor Milestone: PG-Emacs-4.3
Component: 2:pg-emacs Keywords: indentation
Cc: jasongross9+pg@…

Description

Here is some code poorly indented by TAB:

Definition foo (H : False)                                                                                                                
: H = match H return False with                                                                                                           
      end                                                                                                                                 
  := match H with end.
  Definition

The second [Definition] should not be indented.

Change History (1)

comment:1 Changed 11 years ago by coquser

Er, sorry, after a bit more experimenting, here's a better example; the first one doesn't seem to work consistently. I'm even more confused.

Definition foo0 (H : False)
: H = match H return False with
      end
:= match H with end.

  Section bar.
    Definition foo (H : False)
    : H = match H return False with
          end
      := match H with end.
    Definition baz := True.
  End bar.

  Definition qux (H : False)
  : H = match H return False with
        end
    := match H with end.

  Section quxx.
  End quxx.

The Section bar and everything after it should not be indented.

Note: See TracTickets for help on using tickets.