aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar
diff options
context:
space:
mode:
authorGravatar Makarius Wenzel <makarius@sketis.net>2006-10-11 18:34:26 +0000
committerGravatar Makarius Wenzel <makarius@sketis.net>2006-10-11 18:34:26 +0000
commit5c75af0dd3d5341a3e3d93818bf61a015727392e (patch)
treee62ec2fb803a42a89d584bf8d61dc6d72ff26eae /isar
parent91e05d4fb4060094a7a15f260aebac7a205a836a (diff)
added regexps for begin/end and theory start;
Diffstat (limited to 'isar')
-rw-r--r--isar/isar-syntax.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/isar/isar-syntax.el b/isar/isar-syntax.el
index 2d657dac..e990c0fe 100644
--- a/isar/isar-syntax.el
+++ b/isar/isar-syntax.el
@@ -233,7 +233,7 @@ matches contents of quotes for quoted identifiers.")
(defconst isar-improper-regexp
"\\(\\<[A-Za-z][A-Za-z0-9'_]*_tac\\>\\|\\<goal[0-9]+\\>\\)"
- "Regexp matching old-style tactic names")
+ "Regexp matching low-level features")
(defconst isar-save-command-regexp
(proof-anchor-regexp (isar-ids-to-regexp isar-keywords-save)))
@@ -428,6 +428,18 @@ matches contents of quotes for quoted identifiers.")
(defun isar-cannot-undo (cmd)
(concat "cannot_undo \"" cmd "\";"))
+(defconst isar-theory-start-regexp
+ (proof-anchor-regexp
+ (isar-ids-to-regexp
+ (append isar-keywords-theory-begin
+ isar-keywords-theory-switch))))
+
+(defconst isar-begin-regexp
+ (isar-ids-to-regexp '("begin"))) ;; no anchor!
+
+(defconst isar-end-regexp
+ (proof-anchor-regexp
+ (isar-ids-to-regexp isar-keywords-theory-end)))
(defconst isar-undo-fail-regexp
(proof-anchor-regexp