From 0f35715b1b71964d36880c7d9e7ea721e41c1bb7 Mon Sep 17 00:00:00 2001 From: Makarius Wenzel Date: Tue, 24 Aug 1999 16:12:36 +0000 Subject: some output syntax; --- isar/isar-syntax.el | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/isar/isar-syntax.el b/isar/isar-syntax.el index 8316828d..52f97ca6 100644 --- a/isar/isar-syntax.el +++ b/isar/isar-syntax.el @@ -55,6 +55,13 @@ (modify-syntax-entry ?\{ "(}1") (modify-syntax-entry ?\} "){4")) +(defun isar-init-output-syntax-table () + "Set appropriate values for syntax table for Isabelle output." + (isar-init-syntax-table) + ;; ignore strings so font-locking works + ;; inside them + (modify-syntax-entry ?\" " ")) + ;; ----- syntax for font-lock and other features @@ -120,7 +127,7 @@ (concat "\\s-*\\(" isar-string "\\|" isar-id "\\)\\s-*") "Regexp matching Isabelle/Isar names, with contents grouped.") -(defvar isar-font-lock-terms +(defvar isar-output-font-lock-terms (list (cons (concat "\351" isar-id "\350") 'proof-declaration-name-face) ; class (cons (concat "\352'" isar-id "\350") 'proof-tacticals-name-face) ; tfree @@ -148,19 +155,16 @@ (defvar isar-font-lock-keywords-1 - (append -;FIXME n.a. -; isar-font-lock-terms - (list - (cons (proof-ids-to-regexp isar-keywords-minor) 'font-lock-type-face) - (cons (proof-ids-to-regexp isar-keywords-control) 'proof-error-face) - (cons (proof-ids-to-regexp isar-keywords-diag) 'proof-tacticals-name-face) - (cons (proof-ids-to-regexp isar-keywords-theory-enclose) 'font-lock-function-name-face) - (cons (proof-ids-to-regexp isar-keywords-theory) 'font-lock-keyword-face) - (cons (proof-ids-to-regexp isar-keywords-proof-enclose) 'font-lock-function-name-face) - (cons (proof-ids-to-regexp isar-keywords-proof) 'font-lock-keyword-face) - (cons (proof-ids-to-regexp isar-keywords-proof-asm) 'proof-declaration-name-face) - (cons (proof-ids-to-regexp isar-keywords-proof-script) 'font-lock-reference-face)))) + (list + (cons (proof-ids-to-regexp isar-keywords-minor) 'font-lock-type-face) + (cons (proof-ids-to-regexp isar-keywords-control) 'proof-error-face) + (cons (proof-ids-to-regexp isar-keywords-diag) 'proof-tacticals-name-face) + (cons (proof-ids-to-regexp isar-keywords-theory-enclose) 'font-lock-function-name-face) + (cons (proof-ids-to-regexp isar-keywords-theory) 'font-lock-keyword-face) + (cons (proof-ids-to-regexp isar-keywords-proof-enclose) 'font-lock-function-name-face) + (cons (proof-ids-to-regexp isar-keywords-proof) 'font-lock-keyword-face) + (cons (proof-ids-to-regexp isar-keywords-proof-asm) 'proof-declaration-name-face) + (cons (proof-ids-to-regexp isar-keywords-proof-script) 'font-lock-reference-face))) ;; ----- variations on undo -- cgit v1.2.3