emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/rainbow-mode bcc2bcd 10/26: rainbow-mode: 0.9, allow sp


From: Stefan Monnier
Subject: [elpa] externals/rainbow-mode bcc2bcd 10/26: rainbow-mode: 0.9, allow spaces in LaTeX colors
Date: Tue, 1 Dec 2020 16:53:19 -0500 (EST)

branch: externals/rainbow-mode
commit bcc2bcd014216fd68e0ede1fccb4e62198a3e987
Author: Julien Danjou <julien@danjou.info>
Commit: Julien Danjou <julien@danjou.info>

    rainbow-mode: 0.9, allow spaces in LaTeX colors
---
 rainbow-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rainbow-mode.el b/rainbow-mode.el
index 617c661..e6bb602 100644
--- a/rainbow-mode.el
+++ b/rainbow-mode.el
@@ -4,7 +4,7 @@
 
 ;; Author: Julien Danjou <julien@danjou.info>
 ;; Keywords: faces
-;; Version: 0.8
+;; Version: 0.9
 
 ;; This file is part of GNU Emacs.
 
@@ -263,9 +263,9 @@ will be enabled if a major mode has been detected from the
 
 ;; LaTeX colors
 (defvar rainbow-latex-rgb-colors-font-lock-keywords
-  '(("{rgb}{\\([0-9.]+\\),\\([0-9.]+\\),\\([0-9.]+\\)}"
+  '(("{rgb}{\\([0-9.]+\\),\s*\\([0-9.]+\\),\s*\\([0-9.]+\\)}"
      (0 (rainbow-colorize-rgb-float)))
-    ("{RGB}{\\([0-9]\\{1,3\\}\\),\\([0-9]\\{1,3\\}\\),\\([0-9]\\{1,3\\}\\)}"
+    
("{RGB}{\\([0-9]\\{1,3\\}\\),\s*\\([0-9]\\{1,3\\}\\),\s*\\([0-9]\\{1,3\\}\\)}"
      (0 (rainbow-colorize-rgb)))
     ("{HTML}{\\([0-9A-Fa-f]\\{6\\}\\)}"
      (0 (rainbow-colorize-hexadecimal-without-sharp))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]