Skip to content

Commit b3c0813

Browse files
committed
[checks] Check for lack of hyphenation in "floating point"
1 parent 9d7b95e commit b3c0813

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/check-source.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ failed=0
88
texfiles=$(ls *.tex | grep -v macros.tex | grep -v layout.tex | grep -v tables.tex)
99
texlibdesc="support.tex concepts.tex diagnostics.tex memory.tex meta.tex utilities.tex containers.tex iterators.tex ranges.tex algorithms.tex strings.tex text.tex numerics.tex time.tex iostreams.tex threads.tex exec.tex"
1010
texlib="lib-intro.tex $texlibdesc"
11+
texnoback=$(ls *.tex | grep -v back.tex)
1112

1213
# Filter that reformats the error message as a "workflow command",
1314
# for native handling by github actions.
@@ -39,6 +40,10 @@ for f in *.tex; do
3940
echo "$f" | fail 'trailing empty lines' || failed=1
4041
done
4142

43+
# "floating point" instead of "floating-point"
44+
grep -in 'floating point' $texnoback |
45+
fail '"floating point" should be hyphenated like "floating-point"' || failed=1
46+
4247
# indented \begin{codeblock} / \end{codeblock} (causes unwanted empty space)
4348
grep -ne '^.\+\\\(begin\|end\){codeblock}' $texfiles |
4449
fail 'indented codeblock env' || failed=1

0 commit comments

Comments
 (0)