branch: externals/relint
commit d19133e33ea22f95b0313bfcd555901095d7027e
Author: Mattias Engdegård <matti...@acm.org>
Commit: Mattias Engdegård <matti...@acm.org>

    Better variable name patterns
    
    Now scan variables ending in -regexp-list (etc) as well.
---
 trawl.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/trawl.el b/trawl.el
index abf0223..7067155 100644
--- a/trawl.el
+++ b/trawl.el
@@ -273,7 +273,10 @@
                         (symbol-name name))
         (trawl--check-re re-arg name file pos (cons 2 path))
          (push name trawl--checked-variables))
-        ((string-match-p (rx (or "-regexps" "-regexes" "-patterns") eos)
+        ((string-match-p (rx (or (or "-regexps" "-regexes" "-patterns")
+                                 (seq (or "-regexp" "-re" "-regex" "-pattern")
+                                      "-list"))
+                             eos)
                         (symbol-name name))
          (trawl--check-list re-arg name file pos (cons 2 path))
          (push name trawl--checked-variables))

Reply via email to