[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rainbow-mode 4cfdc5b 18/26: Allow outline-minor-mode to
From: |
Stefan Monnier |
Subject: |
[elpa] externals/rainbow-mode 4cfdc5b 18/26: Allow outline-minor-mode to find section headings |
Date: |
Tue, 1 Dec 2020 16:53:21 -0500 (EST) |
branch: externals/rainbow-mode
commit 4cfdc5b8b795871ecc05743c5615a569274c8b86
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Julien Danjou <julien@danjou.info>
Allow outline-minor-mode to find section headings
---
rainbow-mode.el | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/rainbow-mode.el b/rainbow-mode.el
index e1796e4..e8d4b02 100644
--- a/rainbow-mode.el
+++ b/rainbow-mode.el
@@ -44,7 +44,8 @@
:tag "Rainbow"
:group 'help)
-;; Hexadecimal colors
+;;; Hexadecimal colors
+
(defvar rainbow-hexadecimal-colors-font-lock-keywords
'(("[^&]\\(#\\(?:[0-9a-fA-F]\\{3\\}\\)+\\{1,4\\}\\)"
(1 (rainbow-colorize-itself 1)))
@@ -58,7 +59,8 @@
(0 (rainbow-colorize-itself))))
"Font-lock keywords to add for hexadecimal colors.")
-;; rgb() colors
+;;; rgb() colors
+
(defvar rainbow-html-rgb-colors-font-lock-keywords
'(("rgb(\s*\\([0-9]\\{1,3\\}\\(?:\.[0-9]\\)?\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\\.[0-9]\\)?\\(?:\s*%\\)?\\)\s*,\s*\\([0-9]\\{1,3\\}\\(?:\\.[0-9]\\)?\\(?:\s*%\\)?\\)\s*)"
(0 (rainbow-colorize-rgb)))
@@ -70,7 +72,8 @@
(0 (rainbow-colorize-hsl))))
"Font-lock keywords to add for RGB colors.")
-;; HTML colors name
+;;; HTML colors
+
(defvar rainbow-html-colors-font-lock-keywords nil
"Font-lock keywords to add for HTML colors.")
(make-variable-buffer-local 'rainbow-html-colors-font-lock-keywords)
@@ -246,7 +249,8 @@ will be enabled if a major mode has been detected from the
(symbol :tag "disable" nil))
:group 'rainbow)
-;; X colors
+;;; X colors
+
(defvar rainbow-x-colors-font-lock-keywords
`((,(regexp-opt (x-defined-colors) 'words)
(0 (rainbow-colorize-itself))))
@@ -270,7 +274,8 @@ will be enabled if a major mode has been detected from the
(symbol :tag "disable" nil))
:group 'rainbow)
-;; LaTeX colors
+;;; LaTeX colors
+
(defvar rainbow-latex-rgb-colors-font-lock-keywords
'(("{rgb}{\\([0-9.]+\\),\s*\\([0-9.]+\\),\s*\\([0-9.]+\\)}"
(0 (rainbow-colorize-rgb-float)))
@@ -298,7 +303,8 @@ will be enabled if a major mode has been detected from the
(symbol :tag "disable" nil))
:group 'rainbow)
-;; Shell colors
+;;; Shell colors
+
(defvar rainbow-ansi-colors-font-lock-keywords
'(("\\(\\\\[eE]\\|\\\\033\\|\\\\x1[bB]\\|\033\\)\\[\\([0-9;]*m\\)"
(0 (rainbow-colorize-ansi))))
@@ -322,9 +328,8 @@ will be enabled if a major mode has been detected from the
(symbol :tag "disable" nil))
:group 'rainbow)
-;; R colors
+;;; R colors
-;; R colors name
(defvar rainbow-r-colors-font-lock-keywords nil
"Font-lock keywords to add for R colors.")
(make-variable-buffer-local 'rainbow-r-colors-font-lock-keywords)
@@ -1013,7 +1018,8 @@ will be enabled if a major mode has been detected from the
(symbol :tag "disable" nil))
:group 'rainbow)
-;; Functions
+;;; Functions
+
(defun rainbow-colorize-match (color &optional match)
"Return a matched string propertized with a face whose
background is COLOR. The foreground is computed using
@@ -1123,6 +1129,8 @@ Return a value between 0 and 1."
(b (/ (caddr values) 256.0)))
(rainbow-color-luminance r g b)))
+;;; Mode
+
(defun rainbow-turn-on ()
"Turn on raibow-mode."
(font-lock-add-keywords nil
- [elpa] externals/rainbow-mode d78fc41 03/26: rainbow-mode 0.3, (continued)
- [elpa] externals/rainbow-mode d78fc41 03/26: rainbow-mode 0.3, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 1d90a91 05/26: rainbow-mode: version 0.5, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 83bb7be 06/26: rainbow-mode: fix some LaTex docstrings, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode ea74dbb 01/26: Give every package its own directory in packages/, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 47c6ac1 04/26: rainbow-mode: version 0.4, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 65948a4 07/26: * rainbow-mode: update to 0.6, add support for ANSI coloring, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode bcc2bcd 10/26: rainbow-mode: 0.9, allow spaces in LaTeX colors, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode cb47e83 13/26: rainbow: fix font-lock-mode refresh, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 3e5d506 19/26: rainbow-mode: release 1.0, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 313f105 15/26: Fix `rainbow-color-luminance' docstring, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 4cfdc5b 18/26: Allow outline-minor-mode to find section headings,
Stefan Monnier <=
- [elpa] externals/rainbow-mode 2795d65 21/26: Fix a off-by-one error and some wording in rainbow-mode, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 1f37950 02/26: Update rainbow-mode to version 0.2, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 3a684c7 09/26: rainbow-mode: add support for R, bump version to 0.8, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 16afb8a 08/26: rainbow-mode: version 0.7, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode fb7c982 20/26: * rainbow-mode/rainbow-mode.el: do not fail if face-property is a symbol, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 3239d63 11/26: rainbow-mode: support float in CSS and limit to 100%, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 9129350 12/26: * packages/rainbow-mode/rainbow-mode.el (ansi-color-context), Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 1ef059c 14/26: rainbow: add font-lock at the end, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode c9c1728 16/26: Enforce use of spaces for indentation, Stefan Monnier, 2020/12/01
- [elpa] externals/rainbow-mode 3a5a7aa 25/26: fix(rainbow_mode): remove spurious + in regex, Stefan Monnier, 2020/12/01