Skip to content

Commit 953ff2e

Browse files
committed
Coq prooftree: recognize "2 : {" as navigation command
Failing to recognize a parenthesis with a goal selector as a navigation command first displays a wrong proof tree and eventually triggers an assertion in prooftree when continuing after the corresponding closing brace.
1 parent fbb2878 commit 953ff2e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

coq/coq.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ It is mostly useful in three window mode, see also
242242
(defcustom coq-navigation-command-regexp
243243
(concat "^\\(\\(Focus\\)\\|\\(Unfocus\\)\\|"
244244
"\\(all\\s-*:\\s-*\\(cycle\\|swap\\|revgoals\\)\\)\\|"
245-
"\\(\\+\\)\\|\\(-\\)\\|\\(\\*\\)\\|\\({\\)\\|\\(}\\)\\)")
245+
"\\(\\+\\)\\|\\(-\\)\\|\\(\\*\\)\\|"
246+
"\\(\\([0-9]+\\s-*:\\s-*\\)?{\\)\\|"
247+
"\\(}\\)\\)")
246248
"Regexp for `proof-tree-navigation-command-regexp'."
247249
:type 'regexp
248250
:group 'coq-proof-tree)

0 commit comments

Comments
 (0)