>From ab5e8227ca71fd0d8eb964dbf7f30d357fe66930 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Mon, 28 Mar 2016 11:22:02 +0200 Subject: [PATCH 4/4] Add fontification support * style/environ.el ("environ"): Add fontification support. --- style/environ.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/style/environ.el b/style/environ.el index bac82fc..c6b34cc 100644 --- a/style/environ.el +++ b/style/environ.el @@ -1,6 +1,6 @@ ;;; environ.el --- AUCTeX style for `environ.sty' version v0.3 -;; Copyright (C) 2015 Free Software Foundation, Inc. +;; Copyright (C) 2015, 2016 Free Software Foundation, Inc. ;; Author: Arash Esbati ;; Maintainer: address@hidden @@ -118,7 +118,15 @@ from `environ.sty'.") '("BODY") ;; Define another macro instead of \BODY - '("environbodyname" TeX-arg-define-macro))) + '("environbodyname" TeX-arg-define-macro)) + + ;; Fontification + (when (and (featurep 'font-latex) + (eq TeX-install-font-lock 'font-latex-setup)) + (font-latex-add-keywords '(("NewEnviron" "{[[{[") + ("RenewEnviron" "{[[{[") + ("environbodyname" "|{\\")) + 'function))) LaTeX-dialect) (defvar LaTeX-environ-package-options nil -- 2.7.3