PG icon indicating copy to clipboard operation
PG copied to clipboard

Indentation issue: intros with `?`

Open joonwonc opened this issue 5 years ago • 2 comments

The code below

Goal forall a b: nat, True.
Proof.
  intros a ?;
    trivial.
Qed.

is auto-indented to

Goal forall a b: nat, True.
Proof.
  intros a ?;
         trivial.
Qed.

If not using ? at the end of intros, PG auto-indents it correctly, like

Goal forall a b: nat, True.
Proof.
  intros a b;
    trivial.
Qed.

joonwonc avatar Mar 05 '20 18:03 joonwonc

Hi, thanks for reporting this. Note that if you split "?;" into "? ;" it works. PG does not detect that "?;" is not one token but two. By default sequences of "non letters nor digits" are considered as one token.

I could try to detect this but I don't know if this is worth the effort.

Matafou avatar Mar 12 '20 17:03 Matafou

Thanks for letting me know! I indeed have been using "? ;" as a workaround.

joonwonc avatar Mar 12 '20 17:03 joonwonc