aboutsummaryrefslogtreecommitdiffhomepage
path: root/isa
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2002-07-16 23:08:45 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2002-07-16 23:08:45 +0000
commitb317e75d1b45b4ca2945178eafc9f09257afb710 (patch)
tree6f08b94716d129519ae0d39fcb6e838b8864926c /isa
parent4d32897e22ad96923a2363371fc0e8a2e51054ac (diff)
Add conversion of idmarkup to subterm
Diffstat (limited to 'isa')
-rw-r--r--isa/isabelle-system.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/isa/isabelle-system.el b/isa/isabelle-system.el
index 6ca185c7..53d48110 100644
--- a/isa/isabelle-system.el
+++ b/isa/isabelle-system.el
@@ -404,6 +404,23 @@ until Proof General is restarted."
(defvar x-symbol-isabelle-font-lock-keywords nil)
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;
+;; Subterm markup -- faking it
+;;
+
+(defun isabelle-convert-idmarkup-to-subterm ()
+ "Convert identifier markup to subterm markup.
+This is a hook setting for `pg-before-subterm-markup-hook' to
+enable identifiers to be highlighted. (To disable that behaviour,
+the `pg-remove-specials' can be used instead)."
+ (goto-char (point-min))
+ (while (re-search-forward
+ "\351\\|\352\\|\353\\|\354\\|\355\\|\356\\|\357" nil t)
+ (replace-match "\372\200\373" nil t))
+ (goto-char (point-min))
+ (while (re-search-forward "\350" nil t)
+ (replace-match "\374" nil t)))
(provide 'isabelle-system)