[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/proof-general ee01e75c66 03/25: qrhl-mode recognizes focus
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/proof-general ee01e75c66 03/25: qrhl-mode recognizes focus commands (e.g. '1-2: ++') |
Date: |
Mon, 28 Feb 2022 07:58:43 -0500 (EST) |
branch: elpa/proof-general
commit ee01e75c661553bf25a2c7a1a88b17aac43d65c2
Author: Dominique Unruh <unruh@ut.ee>
Commit: Dominique Unruh <unruh@ut.ee>
qrhl-mode recognizes focus commands (e.g. '1-2: ++')
---
qrhl/qrhl.el | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/qrhl/qrhl.el b/qrhl/qrhl.el
index 35b6e03a7c..4a4c299b46 100644
--- a/qrhl/qrhl.el
+++ b/qrhl/qrhl.el
@@ -5,7 +5,24 @@
(proof-generic-count-undos span))
(defvar qrhl-home (file-name-directory (directory-file-name
(file-name-directory (directory-file-name (file-name-directory
load-file-name))))))
-
+
+(defvar qrhl-focus-cmd-regexp
+ (let* ((number "[0-9]+")
+ (white "[[:blank:]]*")
+ (number-or-range (concat number "\\(" white "-" white number
"\\)?"))
+ (range-list (concat number-or-range "\\(" white "," white
number-or-range "\\)*"))
+ (focus-label "\\({\\|}\\|[+*-]+\\)")
+ (focus-cmd (concat "\\(" range-list white ":" white "\\)?"
focus-label))
+ )
+ focus-cmd))
+
+(defun qrhl-proof-script-parse-function ()
+ "Finds the command starting at the point"
+ (or (and (looking-at qrhl-focus-cmd-regexp)
+ (goto-char (match-end 0))
+ 'cmd)
+ (proof-script-generic-parse-cmdend)))
+
(proof-easy-config 'qrhl "qRHL"
proof-prog-name (concat qrhl-home "bin/qrhl")
; We need to give some option here, otherwise
proof-prog-name is interpreted
@@ -13,6 +30,7 @@
; (see the documentation for proof-prog-name)
qrhl-prog-args '("--emacs")
proof-script-command-end-regexp "\\.[ \t]*$"
+ proof-script-parse-function 'qrhl-proof-script-parse-function
proof-shell-annotated-prompt-regexp
"^\\(\\.\\.\\.\\|qrhl\\)> "
proof-script-comment-start-regexp "#"
proof-script-comment-end "\n"
- [nongnu] elpa/proof-general 57a9d9ea91 05/25: qrhl: support for several commands on the same line., (continued)
- [nongnu] elpa/proof-general 57a9d9ea91 05/25: qrhl: support for several commands on the same line., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 0aaf95edba 10/25: Removed setting proof-tree-external-display in `qrhl.el`., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general b580e5f274 08/25: Updated autogenerated parts of PQ-adapting.texi., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 2d3f422b01 11/25: Mentioning qrhl-tool in README.md, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 553b2dc093 09/25: Added (require 'proof) to qrhl.el, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 543aa777d7 14/25: Made path to qrhl-tool customizable., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 232c7ccae1 18/25: qrhl: Ensure UTF-8 via `proof-shell-unicode` instead of `set-language-environment`., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general ff22652025 17/25: qrhl: Font-lock support (keywords and sub/superscripts), ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general b49220f634 01/25: Added qRHL support from qrhl-tool repo, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 80aac72a7a 02/25: Fix: proof-tree-external-display := nil, otherwise ProofGeneral fails, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general ee01e75c66 03/25: qrhl-mode recognizes focus commands (e.g. '1-2: ++'),
ELPA Syncer <=
- [nongnu] elpa/proof-general 9b3ec8c596 16/25: qrhl: Made variable setting of `electric-indent-mode` buffer-local, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 67006d14e3 15/25: Merge branch 'master' into qrhl-tool, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 30b882b8c3 04/25: qrhl.el: Fixed regexp for errors, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general df4013732e 22/25: qrhl: Removed autoload cookie from customizable options., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general fe8b9fccb3 25/25: Merge pull request #636 from dominique-unruh/qrhl-tool, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 847492f78f 13/25: Using require instead of load-library to load qrhl-input., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 0eb165d2a5 12/25: Removed some hardcoded configuration in qrhl mode:, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 360b6c24e3 24/25: Clarified copyright of qrhl: University of Tartu, ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general e86aa8468b 07/25: Added author to qrhl.el., ELPA Syncer, 2022/02/28
- [nongnu] elpa/proof-general 0e51f5af9a 06/25: Merge remote-tracking branch 'origin/master' into qrhl-tool, ELPA Syncer, 2022/02/28