aboutsummaryrefslogtreecommitdiffhomepage
path: root/isar/isar-syntax.el
diff options
context:
space:
mode:
Diffstat (limited to 'isar/isar-syntax.el')
-rw-r--r--isar/isar-syntax.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/isar/isar-syntax.el b/isar/isar-syntax.el
index 7fa6f55d..095b108c 100644
--- a/isar/isar-syntax.el
+++ b/isar/isar-syntax.el
@@ -8,7 +8,7 @@
;; $Id$
;;
-(require 'cl) ; remove-if, remove-if-not
+(eval-when-compile (require 'cl-lib))
(require 'proof-syntax)
(require 'isar-keywords) ; NB: we want to load isar-keywords at runtime
@@ -271,18 +271,18 @@ matches contents of quotes for quoted identifiers.")
(while (proof-re-search-forward isar-nesting-regexp limit t)
(cond
((proof-buffer-syntactic-context))
- ((equal (match-string 0) isar-keyword-begin) (incf nesting))
- ((equal (match-string 0) isar-keyword-end) (decf nesting)))))
+ ((equal (match-string 0) isar-keyword-begin) (cl-incf nesting))
+ ((equal (match-string 0) isar-keyword-end) (cl-decf nesting)))))
nesting))
(defun isar-match-nesting (limit)
- (block nil
+ (cl-block nil
(while (proof-re-search-forward isar-nesting-regexp limit t)
(and (not (proof-buffer-syntactic-context))
(if (equal (match-string 0) isar-keyword-begin)
(> (isar-nesting) 1)
(> (isar-nesting) 0))
- (return t)))))
+ (cl-return t)))))
;; ----- Isabelle inner syntax highlight