branch: master
commit dca039f91cc0b3fa48e1da6a9a91b52c7d9dbca0
Author: Arash Esbati <ar...@gnu.org>
Commit: Arash Esbati <ar...@gnu.org>

    ; * style/preview.el ("preview"): Improve fontification.
---
 style/preview.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/style/preview.el b/style/preview.el
index 5431c095..c19d2783 100644
--- a/style/preview.el
+++ b/style/preview.el
@@ -1,6 +1,6 @@
 ;;; preview.el --- AUCTeX style for `preview.sty' (v2010/02/14)  -*- 
lexical-binding: t; -*-
 
-;; Copyright (C) 2017, 2018, 2020 Free Software Foundation, Inc.
+;; Copyright (C) 2017--2024 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <ar...@gnu.org>
 ;; Maintainer: auctex-devel@gnu.org
@@ -64,23 +64,23 @@ OPTIONAL is ignored."
 
    (TeX-add-symbols
     '("PreviewMacro" (TeX-arg-conditional (y-or-n-p "With optional arguments? 
")
-                                          ( [ t ] [ nil ] )
-                                          ())
+                         ( [ t ] [ nil ] )
+                       ())
       TeX-arg-macro)
 
     '("PreviewMacro*" (TeX-arg-conditional (y-or-n-p "With optional arguments? 
")
-                                           ( [ t ] [ nil ] )
-                                           ())
+                          ( [ t ] [ nil ] )
+                        ())
       TeX-arg-macro)
 
     '("PreviewEnvironment" (TeX-arg-conditional (y-or-n-p "With optional 
arguments? ")
-                                                ( [ t ] [ nil ] )
-                                                ())
+                               ( [ t ] [ nil ] )
+                             ())
       TeX-arg-environment)
 
     '("PreviewEnvironment*" (TeX-arg-conditional (y-or-n-p "With optional 
arguments? ")
-                                                 ( [ t ] [ nil ] )
-                                                 ())
+                                ( [ t ] [ nil ] )
+                              ())
       TeX-arg-environment)
 
     '("PreviewSnarfEnvironment" TeX-arg-environment)
@@ -93,7 +93,7 @@ OPTIONAL is ignored."
    ;; Fontification
    (when (and (featurep 'font-latex)
               (eq TeX-install-font-lock 'font-latex-setup))
-     (font-latex-add-keywords '(("PreviewMacro"            "*[[{")
+     (font-latex-add-keywords '(("PreviewMacro"            "*[[|{\\")
                                 ("PreviewEnvironment"      "*[[{")
                                 ("PreviewSnarfEnvironment" "[{"))
                               'function)))

Reply via email to