branch: elpa commit 12886090ff783cb3ba4725bdc34ea248e7648166 Author: Arash Esbati <esb...@gmx.de> Commit: Tassilo Horn <t...@gnu.org>
Add fontification support * style/environ.el ("environ"): Add fontification support. --- style/environ.el | 12 ++++++++++-- 1 files 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 <esbati'at'gmx.de> ;; Maintainer: auctex-de...@gnu.org @@ -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