emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/relint f6d0fed 15/21: Describe the new file-specific wa


From: Mattias Engdegård
Subject: [elpa] externals/relint f6d0fed 15/21: Describe the new file-specific warnings
Date: Sun, 3 May 2020 11:13:38 -0400 (EDT)

branch: externals/relint
commit f6d0fedd9bd876c741de17b7bb3db29983c338ab
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>

    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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]