changeset 18669:2be0cea51886

maint.mk: enforce spelling of "timestamp" (i.e., no space) * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also disallow /\btime\s+stamps?\b/. Prefer "timestamp".
author Jim Meyering <meyering@fb.com>
date Tue, 10 Jan 2017 07:19:02 -0800
parents 1fe5f10b4b1c
children b862474f61ba
files ChangeLog top/maint.mk
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 10 01:27:44 2017 -0800
+++ b/ChangeLog	Tue Jan 10 07:19:02 2017 -0800
@@ -1,3 +1,9 @@
+2017-01-10  Jim Meyering  <meyering@fb.com>
+
+	maint.mk: enforce spelling of "timestamp" (i.e., no space)
+	* top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
+	disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
+
 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
 
 	dfa: minor simplification with emptyset
--- a/top/maint.mk	Tue Jan 10 01:27:44 2017 -0800
+++ b/top/maint.mk	Tue Jan 10 07:19:02 2017 -0800
@@ -983,10 +983,11 @@
 # Also prohibit a prefix matching "\w+ +".
 # @pxref gets the same see/also treatment and should be parenthesized;
 # presume it must *not* start a sentence.
+# POSIX spells it "timestamp" rather than "time\s+stamp", so we do, too.
 bad_xref_re_ ?= (?:[\w,:;] +|(?:see|also)\s+)\@xref\{
 bad_pxref_re_ ?= (?:[.!?]|(?:see|also))\s+\@pxref\{
 prohibit_undesirable_word_seq_RE_ ?=					\
-  /(?:\bcan\s+not\b|$(bad_xref_re_)|$(bad_pxref_re_))/gims
+  /(?:\bcan\s+not\b|\btime\s+stamps?\b|$(bad_xref_re_)|$(bad_pxref_re_))/gims
 prohibit_undesirable_word_seq_ =					\
     -e 'while ($(prohibit_undesirable_word_seq_RE_))'			\
     $(perl_filename_lineno_text_)