Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b8c2c1a3b582dbf617f80d0f5fb9ba7f > files > 8

ocaml-pa_ounit-devel-109.34.00-2.mga4.x86_64.rpm

;; Extend tuareg to support pa_ounit keywords.
;; To enable just put this file in your site lisp and add
;;   (require 'pa_ounit-tuareg)
;; to your .emacs file.

(defconst tuareg-pa_ounit-keywords
  (concat "\\<" (regexp-opt '("TEST" "TEST_UNIT" "TEST_MODULE") t) "\\>")
  "Regexp for keywords used for new definitions with pa_ounit")

(font-lock-add-keywords
 'tuareg-mode
 `((,tuareg-pa_ounit-keywords . tuareg-font-lock-governing-face)))

(add-hook
 'tuareg-mode-hook
 '(lambda ()
    (setq tuareg-governing-phrase-regexp
          (concat tuareg-governing-phrase-regexp
                  "\\|"
                  tuareg-pa_ounit-keywords))))

(provide 'pa_ounit-tuareg)