forked from ProofGeneral/PG
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ProofGeneral#757 indentation of "\in"
The lexer now glues a "\" to an immediately following word if it is itself preceded by a space. Note that for really good indentation you should try to add something like this to your configuration: (setq coq-smie-user-tokens '(("\\in" . "="))) to tell the indentation grammar that \in has the same precedence as "=".
- Loading branch information
Showing
2 changed files
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters