File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,9 @@ The point should be at the beginning of the command name."
523
523
((member tok '(" End" ))
524
524
(save-excursion (coq-smie-backward-token)))
525
525
526
+ ((member tok '(" do" ))
527
+ (save-excursion (coq-smie-backward-token-aux)))
528
+
526
529
; empty token if a prenthesis is met.
527
530
((and (zerop (length tok)) (looking-at " {|" )) (goto-char (match-end 0 )) " {|" )
528
531
@@ -650,6 +653,15 @@ The point should be at the beginning of the command name."
650
653
" || tactic"
651
654
" ||" ))))))
652
655
656
+ ; ; This may be part of monadic notation, so detect other uses of "do".
657
+ ((equal tok " do" )
658
+ (save-excursion
659
+ (forward-char 2 )
660
+ (smie-default-forward-token )
661
+ (smie-default-backward-token )
662
+ (if (looking-at " [0-9]" ) " do ltac"
663
+ " do" )))
664
+
653
665
654
666
; Same for "->" : rewrite or intro arg or term's implication
655
667
; FIXME: user defined arrows will be considered a term
You can’t perform that action at this time.
0 commit comments