[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/relint 099b59f 01/23: Reorder strings in regexp for mor
From: |
Mattias Engdegård |
Subject: |
[elpa] externals/relint 099b59f 01/23: Reorder strings in regexp for more efficient matching |
Date: |
Sun, 29 Sep 2019 15:34:50 -0400 (EDT) |
branch: externals/relint
commit 099b59f06c812ab4b769c1341f7c8479f90c217b
Author: Mattias Engdegård <address@hidden>
Commit: Mattias Engdegård <address@hidden>
Reorder strings in regexp for more efficient matching
Avoiding prefixes before prefixed strings allows regexp-opt to work better.
---
relint.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/relint.el b/relint.el
index 310be99..66fd0a2 100644
--- a/relint.el
+++ b/relint.el
@@ -1251,7 +1251,7 @@ return (NAME); on syntax error, return nil."
(when (symbolp name)
(cond
((or (relint--defcustom-type-regexp-p type)
- (string-match-p (rx (or "-regexp" "-re" "-regex" "-pattern")
+ (string-match-p (rx (or "-regexp" "-regex" "-re" "-pattern")
eos)
(symbol-name name)))
(relint--check-re re-arg name file pos (cons 2 path))
@@ -1274,7 +1274,7 @@ return (NAME); on syntax error, return nil."
(eq (car type) 'repeat)
(relint--defcustom-type-regexp-p (cadr type)))
(string-match-p (rx (or (or "-regexps" "-regexes")
- (seq (or "-regexp" "-re" "-regex")
+ (seq (or "-regexp" "-regex" "-re")
"-list"))
eos)
(symbol-name name)))
@@ -1289,7 +1289,7 @@ return (NAME); on syntax error, return nil."
(relint--check-compilation-error-regexp-alist-alist
re-arg name file pos (cons 2 path))
(push name relint--checked-variables))
- ((string-match-p (rx (or "-regexp" "-re" "-regex" "-pattern")
+ ((string-match-p (rx (or "-regexp" "-regex" "-re" "-pattern")
"-alist" eos)
(symbol-name name))
(relint--check-list-any re-arg name file pos (cons 2 path))
- [elpa] externals/relint updated (0bf6883 -> b0f0bee), Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 099b59f 01/23: Reorder strings in regexp for more efficient matching,
Mattias Engdegård <=
- [elpa] externals/relint 1ec2d8b 02/23: More elaborate parsing of doc strings of global variables, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 95b3c07 08/23: Add `xor' and bitwise operations to the list of safe functions, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 3f3408d 07/23: Check both car and cdr of items in -regexp-alist variables, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 5142c86 09/23: Fix function evaluation bug, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 43c4644 06/23: Correct naming, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint e11b871 12/23: More robust scanning of format strings for mixup check, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 956a15b 17/23: Fix defun parsing, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint 3a27cff 18/23: Handle mutation of local variables in evaluation, Mattias Engdegård, 2019/09/29
- [elpa] externals/relint d2b7194 19/23: Evaluate `dolist' and `while', Mattias Engdegård, 2019/09/29
- [elpa] externals/relint b2a86b8 04/23: Fix typo in message description and clarify, Mattias Engdegård, 2019/09/29