Skip to content

Commit 6b5f99f

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Add check for i.e. and e.g. followed by comma
1 parent 5209344 commit 6b5f99f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/check-source.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ for f in $texfiles; do
189189
done |
190190
fail '"shall", "should", or "may" inside a note' || failed=1
191191

192+
# Comma after e.g. and i.e.
193+
grep -n "e\.g\.[^,]" $texfiles |
194+
fail '"e.g." must be followed by a comma'
195+
grep -n "i\.e\.[^,]" $texfiles |
196+
fail '"i.e." must be followed by a comma'
197+
198+
192199
# \logop should use lowercase arguments
193200
grep -n '\\logop{[^}]*[^andor}][^}]*}' $texfiles |
194201
fail 'bad argument for \\logop' || failed=1

0 commit comments

Comments
 (0)