Skip to content

Commit de9ea0d

Browse files
jensmaurerzygoloid
authored andcommitted
[check] Flag 'shall', 'may', or 'should' inside notes.
1 parent 866c95d commit de9ea0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/check.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ grep -n "&[ 0-9a-z_]\+) = delete" $texfiles && exit 1
8282
# Bad characters in label. "-" is allowed due to a single remaining offender.
8383
grep -n '^\\rSec.\[[^]]*[^-a-z.0-9][^]]*\]{' $texfiles | sed 's/$/ <--- bad character in label/' | grep . && exit 1
8484

85-
# "shall" inside a note
85+
# "shall", "may", or "should" inside a note
8686
for f in $texfiles; do
87-
sed -n '/begin{note}/,/end{note}/{/shall[^a-zA-Z]/{=;p}}' $f |
87+
sed -n '/begin{note}/,/end{note}/{/\(shall\|may\|should\)[^a-zA-Z]/{=;p}}' $f |
8888
# prefix output with filename and line
8989
sed '/^[0-9]\+$/{N;s/\n/:/}' | sed "s/.*/$f:&/" |
90-
sed 's/$/ <--- "shall" inside a note/'
90+
sed 's/$/ <--- "shall", "should", or "may" inside a note/'
9191
done | grep . && exit 1
9292

9393
# Hanging paragraphs

0 commit comments

Comments
 (0)