Open KimayaBedarkar opened 7 months ago
Hi. Sadly the coq-smie-user-tokens
variable that usually can solve this kind of problem does not work in this case because "\" is not considered as part f a token by PG's lexer. I will think about a way to include this characters in lexing but this will not happen in a short future I am afraid. Sorry...
Poor work around: put parenthesis around a \n [::]
.
Actually I think I found a simple way to fix this. @KimayaBedarkar can you test this? I get this indentation now:
Require Import mathcomp.ssreflect.ssrbool.
Definition xx := nat.
Module foo.
(* from PG issue #757 *)
Lemma test:
forall a : nat,
a \in [::] -> (* "\in" should be detected as one token *)
False.
Proof.
Abort.
Lemma test2:
forall a : nat,
a \in (* "\in" should be detected as one token *)
[::] ->
False.
End foo.
SSReflect uses
\in
as opposed to the unicode∈
to indicate membership in lists. However, the former is not indented correctly. Example:as opposed to: