Skip to content

Commit 7ef6929

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Add check for \^ and recommend \caret
1 parent 94dc5a7 commit 7ef6929

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/check-source.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ grep -n "// not defined" $texfiles |
7373

7474
# Use \Cpp{} instead of C++
7575
grep -n '^[^%]*[^{"]C++[^"}]' $texfiles |
76-
fail 'use \Cpp{} instead' || failed=1
76+
fail 'use \\Cpp{} instead' || failed=1
77+
78+
# Use \caret instead of \^
79+
fgrep -n '\^' $texfiles |
80+
fail 'use \\caret instead' || failed=1
7781

7882
# Use \unicode instead of U+nnnn
7983
grep -n 'U+' $texfiles |

0 commit comments

Comments
 (0)