-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 "=". Test added.
- Loading branch information
Showing
2 changed files
with
54 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,23 @@ | ||
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. | ||
Qed. | ||
|
||
Lemma test2: | ||
forall a : nat, | ||
a \in (* "\in" should be detected as one token *) | ||
[::] -> | ||
False. | ||
Proof. | ||
Abort. | ||
Qed. | ||
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