aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-syntax.el
diff options
context:
space:
mode:
authorDavid Aspinall1999-02-01 13:31:24 +0000
committerDavid Aspinall1999-02-01 13:31:24 +0000
commitbac4f6fbe0f94b47fea79169c849ee17601eb67c (patch)
treef1cd9473e47961b718ea268bbf21181e22d03040 /generic/proof-syntax.el
parenta05bd4c77eb337e21bfac4ec4adb1e834cc56940 (diff)
Added proof-string-match
Diffstat (limited to 'generic/proof-syntax.el')
-rw-r--r--generic/proof-syntax.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/generic/proof-syntax.el b/generic/proof-syntax.el
index 4aa0bc4c..d531d107 100644
--- a/generic/proof-syntax.el
+++ b/generic/proof-syntax.el
@@ -43,6 +43,17 @@ nil if a region cannot be found."
(if (re-search-forward endre nil t)
start))))
+;; Function for string matching that takes into account value
+;; of proof-case-fold-search. Last arg to string-match is
+;; not applicable.
+
+(defun proof-string-match (regexp string &optional start)
+ "Like string-match, but set case-fold-search to proof-case-fold-search."
+ (let
+ ((case-fold-search proof-case-fold-search))
+ (string-match regexp string start)))
+
+
;; Generic font-lock
;; proof-commands-regexp is used for indentation