diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-10-05 14:06:24 +0200 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2024-05-28 22:58:43 -0400 |
commit | 1bff87bdb7cf299c26e9f8f52eae0b1213289a65 (patch) | |
tree | 5b735107639f3f22b3563bfd62aa35205d2b9f1b | |
parent | 5e9a60aaae965e5d76da1a4d0bb887d28eb9e250 (diff) |
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
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 3c754a239..eea91d393 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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 "\\)")) |