diff options
| author | Erik Martin-Dorel | 2021-04-21 20:00:36 +0200 |
|---|---|---|
| committer | GitHub | 2021-04-21 20:00:36 +0200 |
| commit | b5c4c3a1423c7925194334d66c262054d6a6c4c5 (patch) | |
| tree | e7878c97ece66bd7941e8f6019f70325de3f1bd1 /coq/coq-syntax.el | |
| parent | d0acb626eba17023c55b002921870d60e48527a5 (diff) | |
| parent | 82311da10ee3dfa6f29ddfb9225f9f05c29dca31 (diff) | |
Add feature to omit complete opaque proofs
Diffstat (limited to 'coq/coq-syntax.el')
| -rw-r--r-- | coq/coq-syntax.el | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/coq/coq-syntax.el b/coq/coq-syntax.el index a517df71..8806774f 100644 --- a/coq/coq-syntax.el +++ b/coq/coq-syntax.el @@ -1107,6 +1107,31 @@ It is used: (not (string-match "\\`Proof\\s-*\\(\\.\\|\\_<with\\_>\\|\\_<using\\_>\\)" str)))))) +;; ----- regular expressions for the proof omit feature +;; see `proof-omit-proofs-configured' in generic/proof-config + +(defcustom coq-proof-start-regexp "^Proof\\(\\.\\| \\)" + "Value for `proof-script-proof-start-regexp'." + :type 'regexp + :group 'coq) + +(defcustom coq-proof-end-regexp "^\\(Qed\\|Admitted\\)\\." + "Value for `proof-script-proof-end-regexp'. +This is similar to `coq-save-command-regexp-strict' but slightly +different." + :type 'regexp + :group 'coq) + +(defcustom coq-definition-end-regexp "^\\(Defined\\|Abort\\)\\(\\.\\| \\)" + "Value for `proof-script-definition-end-regexp'." + :type 'regexp + :group 'coq) + +(defcustom coq-omit-proof-admit-command "Admitted." + "Value for `proof-script-proof-admit-command'." + :type 'string + :group 'coq) + ;; ----- keywords for font-lock. (defvar coq-keywords-kill-goal |
