commit:     cce9bc832459eec6aea11dae34f6886244dc44e4
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 22 06:28:11 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Mar 22 06:28:11 2025 +0000
URL:        https://gitweb.gentoo.org/proj/eselect.git/commit/?id=cce9bc83

eselect-mode: Update copyright regexp

* misc/eselect-mode.el (eselect-mode-copyright-regexp): Allow some
variants, e.g. "Copyright (c)" which is used in eselect libs.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ChangeLog            | 3 +++
 misc/eselect-mode.el | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e8579f5..e145efb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-03-22  Ulrich Müller  <[email protected]>
 
+       * misc/eselect-mode.el (eselect-mode-copyright-regexp): Allow some
+       variants, e.g. "Copyright (c)" which is used in eselect libs.
+
        * modules/rc.eselect (module_load_hook): New function; warn about
        the module being deprecated.
        * libs/core.bash.in (do_action): Call the module_load_hook

diff --git a/misc/eselect-mode.el b/misc/eselect-mode.el
index 3c4e55f..4a1eca4 100644
--- a/misc/eselect-mode.el
+++ b/misc/eselect-mode.el
@@ -1,6 +1,6 @@
 ;;; eselect-mode.el --- edit eselect files  -*-lexical-binding:t-*-
 
-;; Copyright 2006-2024 Gentoo Authors
+;; Copyright 2006-2025 Gentoo Authors
 
 ;; Author: Matthew Kennedy <[email protected]>
 ;;     Diego Pettenò <[email protected]>
@@ -48,7 +48,8 @@
   :group 'eselect)
 
 (defvar eselect-mode-copyright-regexp
-  "^#[ \t]*Copyright[ \t]+\\([1-9][0-9]+\\)\\(?:-\\([1-9][0-9]+\\)\\)?\
+  "^#[ \t]*\\(?:Copyright\\(?:[ \t]+([Cc])\\|[ \t]+©\\)?\\|([Cc])\\|©\\)\
+[ \t]+\\([1-9][0-9]+\\)\\(?:-\\([1-9][0-9]+\\)\\)?\
 [ \t]+\\(.*\\<Gentoo Authors\\>.*\\)")
 
 ;;; Font-lock.

Reply via email to