diff --git a/source/grammar.tex b/source/grammar.tex index 259dabaedf..cff84a8d0d 100644 --- a/source/grammar.tex +++ b/source/grammar.tex @@ -27,35 +27,35 @@ \begin{ncbnf} typedef-name:\br - identifier\br - simple-template-id + identifier\br + simple-template-id \end{ncbnf} \begin{ncbnf} namespace-name:\br - identifier\br - namespace-alias + identifier\br + namespace-alias \end{ncbnf} \begin{ncbnf} namespace-alias:\br - identifier + identifier \end{ncbnf} \begin{ncbnf} class-name:\br - identifier\br - simple-template-id + identifier\br + simple-template-id \end{ncbnf} \begin{ncbnf} enum-name:\br - identifier + identifier \end{ncbnf} \begin{ncbnf} simple-template-name:\br - identifier + identifier \end{ncbnf} \input{std-gram.ext} diff --git a/source/iostreams.tex b/source/iostreams.tex index 4af8929897..851bcbb1e5 100644 --- a/source/iostreams.tex +++ b/source/iostreams.tex @@ -15708,8 +15708,8 @@ {Enum class \tcode{file_type}}{fs.enum.file.type} {lp{4.5in}} \topline -\lhdr{Constant} & -\rhdr{Meaning} \\ \capsep +\lhdr{Constant} & +\rhdr{Meaning} \\ \capsep \tcode{\libmember{none}{file_type}} & The type of the file has not been determined or an error occurred while @@ -15759,7 +15759,7 @@ {lp{4in}} \topline \ohdrx{2}{Option group controlling \tcode{copy_file} function effects for existing target files} \\ \rowsep -\lhdr{Constant} & \rhdr{Meaning} \\ \capsep +\lhdr{Constant} & \rhdr{Meaning} \\ \capsep \tcode{\libmember{none}{copy_options}} & (Default) Error; file already exists. \\ \rowsep \tcode{\libmember{skip_existing}{copy_options}} & @@ -15770,14 +15770,14 @@ Overwrite the existing file if it is older than the replacement file. \\ \capsep \ohdrx{2}{Option group controlling \tcode{copy} function effects for subdirectories} \\ \rowsep -\lhdr{Constant} & \rhdr{Meaning} \\ \capsep +\lhdr{Constant} & \rhdr{Meaning} \\ \capsep \tcode{\libmember{none}{copy_options}} & (Default) Do not copy subdirectories. \\ \rowsep \tcode{\libmember{recursive}{copy_options}} & Recursively copy subdirectories and their contents. \\ \capsep \ohdrx{2}{Option group controlling \tcode{copy} function effects for symbolic links} \\ \rowsep -\lhdr{Constant} & \rhdr{Meaning} \\ \capsep +\lhdr{Constant} & \rhdr{Meaning} \\ \capsep \tcode{\libmember{none}{copy_options}} & (Default) Follow symbolic links. \\ \rowsep \tcode{\libmember{copy_symlinks}{copy_options}} & @@ -15787,7 +15787,7 @@ Ignore symbolic links. \\ \capsep \ohdrx{2}{Option group controlling \tcode{copy} function effects for choosing the form of copying} \\ \rowsep -\lhdr{Constant} & \rhdr{Meaning} \\ \capsep +\lhdr{Constant} & \rhdr{Meaning} \\ \capsep \tcode{\libmember{none}{copy_options}} & (Default) Copy content. \\ \rowsep \tcode{\libmember{directories_only}{copy_options}} & @@ -15811,8 +15811,8 @@ {Enum class \tcode{perms}}{fs.enum.perms} {lrlp{3.2in}} \topline -\lhdr{Name} & \chdr{Value} & \chdr{POSIX} & \rhdr{Definition or notes} \\ - & & \chdr{macro} & \\ \capsep +\lhdr{Name} & \chdr{Value} & \chdr{POSIX} & \rhdr{Definition or notes} \\ + & & \chdr{macro} & \\ \capsep \tcode{\libmember{none}{perms}} & \tcode{0} & & There are no permissions set for the file. \\ \rowsep @@ -15903,8 +15903,8 @@ {Enum class \tcode{directory_options}}{fs.enum.dir.opts} {lp{3in}} \topline -\lhdr{Name} & -\rhdr{Meaning} \\ \capsep +\lhdr{Name} & +\rhdr{Meaning} \\ \capsep \tcode{\libmember{none}{directory_options}} & (Default) Skip directory symlinks, permission denied is an error. \\ \rowsep diff --git a/source/lex.tex b/source/lex.tex index e719091ebe..6ef36bea56 100644 --- a/source/lex.tex +++ b/source/lex.tex @@ -929,7 +929,7 @@ \nontermdef{identifier-start}\br nondigit\br \textnormal% - {an element of the translation character set with the Unicode property XID_Start or the Unicode property ID_Compat_Math_Start} + {an element of the translation character set with the Unicode property XID_Start or the Unicode property ID_Compat_Math_Start} \end{bnf} \begin{bnf} @@ -937,7 +937,7 @@ digit\br nondigit\br \textnormal% - {an element of the translation character set with the Unicode property XID_Continue or the Unicode property ID_Compat_Math_Continue} + {an element of the translation character set with the Unicode property XID_Continue or the Unicode property ID_Compat_Math_Continue} \end{bnf} \begin{bnf} diff --git a/source/memory.tex b/source/memory.tex index 2c68fbe7ab..cbb7784cf1 100644 --- a/source/memory.tex +++ b/source/memory.tex @@ -111,7 +111,7 @@ volatile T* start_lifetime_as_array(volatile void* p, size_t n) noexcept; // freestanding template const volatile T* start_lifetime_as_array(const volatile void* p, // freestanding - size_t n) noexcept; + size_t n) noexcept; // \ref{allocator.tag}, allocator argument tag struct allocator_arg_t { explicit allocator_arg_t() = default; }; // freestanding diff --git a/source/numerics.tex b/source/numerics.tex index b32d1cef16..dc561b5122 100644 --- a/source/numerics.tex +++ b/source/numerics.tex @@ -10142,8 +10142,8 @@ \begin{formula}{sf.cmath.cyl.bessel.k} \mathsf{K}_\nu(x) = (\pi/2)\mathrm{i}^{\nu+1} ( \mathsf{J}_\nu(\mathrm{i}x) - + \mathrm{i} \mathsf{N}_\nu(\mathrm{i}x) - ) + + \mathrm{i} \mathsf{N}_\nu(\mathrm{i}x) + ) = \left\{ \begin{array}{cl} @@ -10389,7 +10389,7 @@ \begin{formula}{sf.cmath.hermite} \mathsf{H}_n(x) = (-1)^n e^{x^2} \frac{ \mathsf{d} ^n} - { \mathsf{d}x^n} \, e^{-x^2} + { \mathsf{d}x^n} \, e^{-x^2} \end{formula} \pnum @@ -10511,7 +10511,7 @@ \\ \displaystyle \frac{1} - {1 - 2^{1-x}} + {1 - 2^{1-x}} \sum_{k=1}^\infty (-1)^{k-1} k^{-x}, & \mbox{for $0 \le x \le 1$} \\ diff --git a/source/ranges.tex b/source/ranges.tex index 987ce3d95e..7a12af0a88 100644 --- a/source/ranges.tex +++ b/source/ranges.tex @@ -13840,7 +13840,7 @@ Equivalent to: \begin{codeblock} return @\exposid{to-unsigned-like}@(ranges::min(@\exposid{parent_}@->@\exposid{remainder_}@, - ranges::end(@\exposid{parent_}@->@\exposid{base_}@) - *@\exposid{parent_}@->@\exposid{current_}@)); + ranges::end(@\exposid{parent_}@->@\exposid{base_}@) - *@\exposid{parent_}@->@\exposid{current_}@)); \end{codeblock} \end{itemdescr} diff --git a/tools/check-source.sh b/tools/check-source.sh index 5031491178..6bfbb49617 100755 --- a/tools/check-source.sh +++ b/tools/check-source.sh @@ -50,6 +50,10 @@ grep -ne '\\pnum.\+$' $texfiles | fail "pnum not alone on line" || failed=1 # Fixup: sed '/\\pnum.\+$/s/\\pnum\s*/\\pnum\n/' +# A line must not start with a tab +grep -ne '^ ' $texfiles | + fail 'No line should begin with a tab' || failed=1 + # Two consecutive \pnum for f in $texfiles; do awk 'prev == $0 && /^\\pnum/ { print FILENAME ":" FNR ":" } { prev = $0 }' $f