aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emacs-lisp/copyright.el
diff options
context:
space:
mode:
authorMiles Bader <[email protected]>2009-02-17 10:13:59 +0000
committerMiles Bader <[email protected]>2009-02-17 10:13:59 +0000
commit24a517fc67cb719a307a1fdd4109eb1d2808fc7c (patch)
tree06bab9cbcc3d086e051350459d7d79c9e1e298d6 /lisp/emacs-lisp/copyright.el
parentf0d129c6d60953ef49b946f2404b79a190d48425 (diff)
Tweak copyright-regexp
Tweaked to match copyright statements where the years follow the name. Revision: [email protected]/emacs--devo--0--patch-1549
Diffstat (limited to 'lisp/emacs-lisp/copyright.el')
-rw-r--r--lisp/emacs-lisp/copyright.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el
index 04020d652e..f454d2ef52 100644
--- a/lisp/emacs-lisp/copyright.el
+++ b/lisp/emacs-lisp/copyright.el
@@ -51,7 +51,8 @@ This is useful for ChangeLogs."
(defcustom copyright-regexp
"\\(©\\|@copyright{}\\|[Cc]opyright\\s *:?\\s *\\(?:(C)\\)?\
\\|[Cc]opyright\\s *:?\\s *©\\)\
-\\s *\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
+\\s *\\(?:[^0-9\n]*\\s *\\)?\
+\\([1-9]\\([-0-9, ';/*%#\n\t]\\|\\s<\\|\\s>\\)*[0-9]+\\)"
"What your copyright notice looks like.
The second \\( \\) construct must match the years."
:group 'copyright