Backport commit 67977ae59 from Emacs
* lisp/org/org.el (org-make-tags-matcher): Apply the transform (A+B*)+ -> A(A|B)* Eliminate some nested repetitions in regexps 67977ae5974e54d34034aa7990cf22dd162c179b Mattias Engdegård Sun Oct 29 17:40:36 2023 +0100
This commit is contained in:
parent
5e9a60aaae
commit
1bff87bdb7
|
@ -11346,7 +11346,7 @@ See also `org-scan-tags'."
|
|||
(let ((match0 match)
|
||||
(re (concat
|
||||
"^&?\\([-+:]\\)?\\({[^}]+}\\|LEVEL\\([<=>]\\{1,2\\}\\)"
|
||||
"\\([0-9]+\\)\\|\\(\\(?:[[:alnum:]_]+\\(?:\\\\-\\)*\\)+\\)"
|
||||
"\\([0-9]+\\)\\|\\([[:alnum:]_]\\(?:[[:alnum:]_]\\|\\\\-\\)*\\)"
|
||||
"\\([<>=]\\{1,2\\}\\)"
|
||||
"\\({[^}]+}\\|\"[^\"]*\"\\|-?[.0-9]+\\(?:[eE][-+]?[0-9]+\\)?\\)"
|
||||
"\\|" org-tag-re "\\)"))
|
||||
|
|
Loading…
Reference in New Issue