diff --git a/coq-lint.sh b/coq-lint.sh index e11f0a8754b4d28def100137ab54a264771d42fc..25fdf595a6dcadfd3e18a4f96e03c915eddd6b2f 100755 --- a/coq-lint.sh +++ b/coq-lint.sh @@ -4,7 +4,7 @@ set -e FILE="$1" -if grep -E -n '^\s*((Existing\s+|Program\s+|Declare\s+)?Instance|Arguments|Remove|Hint\s+(Extern|Constructors|Resolve|Immediate|Mode|Opaque|Transparent|Unfold|Rewrite)|(Open|Close)\s+Scope|Opaque|Transparent)\b' "$FILE"; then +if grep -E -n '^\s*((Existing\s+|Program\s+|Declare\s+)?Instance|Arguments|Remove|Hint\s+(Extern|Constructors|Resolve|Immediate|Mode|Opaque|Transparent|Unfold|Rewrite)|(Open|Close)\s+Scope|Opaque|Transparent|Typeclasses (Opaque|Transparent))\b' "$FILE"; then echo "ERROR: $FILE contains 'Instance'/'Arguments'/'Hint' or another side-effect without locality (see above)." echo "Please add 'Global' or 'Local' as appropriate." echo