aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/proof-syntax.el
diff options
context:
space:
mode:
Diffstat (limited to 'generic/proof-syntax.el')
-rw-r--r--generic/proof-syntax.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/generic/proof-syntax.el b/generic/proof-syntax.el
index 0f4575bf..3da86f62 100644
--- a/generic/proof-syntax.el
+++ b/generic/proof-syntax.el
@@ -18,8 +18,13 @@
(mapconcat (lambda (s) (concat "\\<" s "\\>")) l "\\|"))
(defun proof-anchor-regexp (e)
- "Anchor (^) and group the regexp E."
- (concat "^\\(" e "\\)"))
+ "Anchor (\\`) and group the regexp E."
+ (concat "\\`\\(" e "\\)"))
+
+(defconst proof-no-regexp
+ "\\'\\`"
+ "A regular expression that never matches anything")
+
(defun proof-regexp-alt (&rest args)
"Return the regexp which matches any of the regexps ARGS."