diff --git a/source/overloading.tex b/source/overloading.tex index 52883f84dd..aaba787a5f 100644 --- a/source/overloading.tex +++ b/source/overloading.tex @@ -3845,11 +3845,11 @@ In this subclause, the term \defn{promoted integral type} is used to refer to those cv-unqualified integral types which are preserved by -integral promotion\iref{conv.prom} (including e.g. +integral promotion\iref{conv.prom} (including e.g., \tcode{int} and \tcode{long} -but excluding e.g. +but excluding e.g., \tcode{char}). \begin{note} In all cases where a promoted integral type is diff --git a/tools/check-source.sh b/tools/check-source.sh index ffd7c94d47..56c82c2a91 100755 --- a/tools/check-source.sh +++ b/tools/check-source.sh @@ -212,9 +212,9 @@ done | fail '"shall", "should", or "may" inside a note' || failed=1 # Comma after e.g. and i.e. -grep -n "e\.g\.[^,]" $texfiles | +grep -nP "e\.g\.(?!,)" $texfiles | fail '"e.g." must be followed by a comma' -grep -n "i\.e\.[^,]" $texfiles | +grep -nP "i\.e\.(?!,)" $texfiles | fail '"i.e." must be followed by a comma'