branch: elpa
commit f375c1fa0aa28e68d518dbdfec33f70c146397a1
Author: Mosè Giordano <m...@gnu.org>
Commit: Mosè Giordano <m...@gnu.org>

    Fold environments with * in name
    
    * tex-fold.el (TeX-fold-item): Add asterisk to the regexp matching LaTeX
      environment names.  Fixes bug#24263.
---
 tex-fold.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tex-fold.el b/tex-fold.el
index af1191f..cf4284e 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -468,7 +468,7 @@ Return non-nil if an item was found and folded, nil 
otherwise."
                                   ((eq type 'env)
                                    (concat (regexp-quote TeX-esc)
                                            "begin[ \t]*{"
-                                           "\\([A-Za-z]+\\)}"))
+                                           "\\([A-Za-z*]+\\)}"))
                                   (t
                                    (concat (regexp-quote TeX-esc)
                                            "\\([A-Za-z@*]+\\)"))))

Reply via email to