diff options
author | Pierre Courtieu <courtieu@lri.fr> | 2012-09-06 16:17:45 +0000 |
---|---|---|
committer | Pierre Courtieu <courtieu@lri.fr> | 2012-09-06 16:17:45 +0000 |
commit | 499893e8b94962c8a963d95b7144a1d0f8f33f11 (patch) | |
tree | e3eb4f2de89827cd73e5e5c7661cba3a110e2bd5 /coq | |
parent | 8eab833eb7c525f7e50d6e42a6b804a7a26f1f92 (diff) |
Fixed a bug with function name "eval" (end of).
Diffstat (limited to 'coq')
-rw-r--r-- | coq/coq-db.el | 4 | ||||
-rw-r--r-- | coq/coq-smie-lexer.el | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/coq/coq-db.el b/coq/coq-db.el index a0d671ef..3985a588 100644 --- a/coq/coq-db.el +++ b/coq/coq-db.el @@ -254,13 +254,13 @@ See `coq-syntax-db' for DB structure." "Face for names of closing tactics in proof scripts." :group 'proof-faces) -;;A new face for tactics which fail when they don't kill the current goal +;;A new face for cheating tactics (defface coq-cheat-face (proof-face-specs (:background "red") ; pour les fonds clairs (:background "red") ; pour les fond foncés ()) ; pour le noir et blanc - "Face for names of closing tactics in proof scripts." + "Face for names of cheating tactics in proof scripts." :group 'proof-faces) (defconst coq-solve-tactics-face 'coq-solve-tactics-face diff --git a/coq/coq-smie-lexer.el b/coq/coq-smie-lexer.el index c6459206..094a8478 100644 --- a/coq/coq-smie-lexer.el +++ b/coq/coq-smie-lexer.el @@ -514,11 +514,12 @@ The point should be at the beginning of the command name." (coq-smie-search-token-backward '("let" "match" ;"eval" should be "eval in" but this is not supported by search-token-backward "." ) nil - '(("match" . "with") (("let" "eval") . "in"))))) + '(("match" . "with") (("let" ;"eval" + ) . "in"))))) (cond ((member prev-interesting '("." nil)) "in tactic") ((equal prev-interesting "let") "in let") - ((equal prev-interesting "eval in") "in eval") + ;((equal prev-interesting "eval in") "in eval"); not detectable by coq-smie-search-token-backward ((equal prev-interesting "match") "in match") (t "in tactic"))))) @@ -580,7 +581,7 @@ Lemma foo: forall n, (exp "xxx provedby" exp) (exp "as morphism" exp) (exp "with signature" exp) ("match" matchexp "with match" exp "end");expssss - ("let" assigns "in let" exp) ("eval in" assigns "in eval" exp) + ("let" assigns "in let" exp) ;("eval in" assigns "in eval" exp) disabled ("fun" exp "=> fun" exp) ("if" exp "then" exp "else" exp) ("quantif exists" exp ", quantif" exp) ("forall" exp ", quantif" exp) |