branch: externals/relint commit f6d0fedd9bd876c741de17b7bb3db29983c338ab Author: Mattias Engdegård <matti...@acm.org> Commit: Mattias Engdegård <matti...@acm.org>
Describe the new file-specific warnings --- README | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README b/README index f816349..34a7b5b 100644 --- a/README +++ b/README @@ -147,6 +147,22 @@ skip-syntax-backward. A pattern that only matches a non-empty string occurs right after an end-of-text anchor (\'). This combination can never match. + - Use \` instead of ^ in file-matching regexp + - Use \' instead of $ in file-matching regexp + + In a regexp used for matching a file name, newlines are usually + not relevant. Line-start and line-end anchors should therefore + probably be replaced with string-start and string-end, + respectively. Otherwise, the regexp may fail for file names that + do contain newlines. + + - Possibly unescaped '.' in file-matching regexp + + In a regexp used for matching a file name, a naked dot is usually + more likely to be a mistake (missing escaping backslash) than an + actual intent to match any character except newline, since literal + dots are very common in file name patterns. + - Uncounted repetition The construct A\{,\} repeats A zero or more times which was