Skip to content

Commit b8707d9

Browse files
jensmaurertkoeppe
authored andcommitted
[check] Flag any space between 'template' and '<'
Previously, the pattern required 'class' after '<' to fire.
1 parent 82481dc commit b8707d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/check-source.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ grep -Hne '^\\\(change\|rationale\|effect\|difficulty\|howwide\)\s.\+$' compatib
108108
fail "change marker in [diff] followed by stuff" || failed=1
109109
# Fixup: sed 's/^\\\(change\|rationale\|effect\|difficulty\|howwide\)\s\(.\)/\\\1\n\2/'q
110110

111-
# "template <class" (with space) in library clause.
112-
grep -ne 'template\s<class' $texlib |
113-
fail 'space between "template" and "<class"' || failed=1
111+
# "template <" (with space) in library clause.
112+
grep -ne 'template\s\+<' $texlib |
113+
fail 'space between "template" and "<"' || failed=1
114114

115115
# "Class" heading without namespace
116116
for f in $texlib; do

0 commit comments

Comments
 (0)