aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Courtieu2013-07-10 11:45:10 +0000
committerPierre Courtieu2013-07-10 11:45:10 +0000
commitc3cf9716040b613afecab125a3de97f6a7052f05 (patch)
tree865b00112675e03cc6fa701471b141193c09f27c
parenta169507920a0116839a32b691d095be7106932c7 (diff)
Fixing #475. the "=>" ptoken just before "exists" should be the ltac
"=>" most of the time.
-rw-r--r--coq/coq-smie-lexer.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/coq/coq-smie-lexer.el b/coq/coq-smie-lexer.el
index 9cd69c98..43901ae5 100644
--- a/coq/coq-smie-lexer.el
+++ b/coq/coq-smie-lexer.el
@@ -113,7 +113,6 @@ the token of \".\" is simply \".\".
-
;; ignore-between is a description of pseudo delimiters of blocks that
;; should be jumped when searching. There is a bad interaction when
;; tokens and ignore-bteween are not disjoint
@@ -462,14 +461,20 @@ The point should be at the beginning of the command name."
(let ((prev (coq-smie-backward-token))) ;; recursive call
(member prev '("." ". proofstart" "{ subproof" "} subproof")))))
(concat tok " bullet"))
+
+
+
((and (member tok '("exists" "∃"))
(save-excursion
(not (member
- (coq-smie-backward-token) ;; recursive call
- '("." ". proofstart" "; tactic" "[" "]" "|"
+ (coq-smie-backward-token) ;; recursive call looking at the ptoken immediately before
+ '("." ". proofstart" "; tactic" "[" "]" "|" "=>" ;; => may be wrong here but rare (have "=> ltac"?)
"{ subproof" "} subproof" "- bullet" "+ bullet"
- "* bullet"))))
- "quantif exists"))
+ "* bullet")))))
+ "quantif exists")
+
+
+
((equal tok "∀") "forall")
((equal tok "→") "->")
((equal tok "∨") "\\/")