[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 59ef4751 2/2: Simplify regexp
From: |
Ikumi Keita |
Subject: |
master 59ef4751 2/2: Simplify regexp |
Date: |
Mon, 23 May 2022 04:12:16 -0400 (EDT) |
branch: master
commit 59ef47512555664b94cedcd2575850888fad94c4
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Simplify regexp
* latex.el (LaTeX-auto-regexp-list): Simplify regular expression.
Inside "[...]", backslash and period don't have special meaning so
they don't need escaping.
---
latex.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/latex.el b/latex.el
index a6a775a8..a18b56c7 100644
--- a/latex.el
+++ b/latex.el
@@ -1780,16 +1780,16 @@ This is necessary since index entries may contain
commands and stuff.")
(,(concat "\\\\newtheorem{\\(" token "+\\)}") 1 LaTeX-auto-environment)
("\\\\input{\"?\\([^#}%\"\\\n\r]+?\\)\\(?:\\.[^#}%/\"\\.\n\r]+\\)?\"?}"
1 TeX-auto-file)
- ("\\\\include{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
+ ("\\\\include{\\(\\.*[^#}%\\.\n\r]+\\)\\(\\.[^#}%\\.\n\r]+\\)?}"
1 TeX-auto-file)
(,(concat "\\\\bibitem{\\(" token "[^, \n\r\t%\"#'()={}]*\\)}")
1 LaTeX-auto-bibitem)
(,(concat "\\\\bibitem\\[[^][\n\r]+\\]{\\(" token "[^,
\n\r\t%\"#'()={}]*\\)}")
1 LaTeX-auto-bibitem)
- ("\\\\bibliography{\\([^#}\\\\\n\r]+\\)}" 1 LaTeX-auto-bibliography)
- ("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\\\n\r]+\\)\\..+}"
+ ("\\\\bibliography{\\([^#}\\\n\r]+\\)}" 1 LaTeX-auto-bibliography)
+ ("\\\\addbibresource\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n\r]+\\)\\..+}"
1 LaTeX-auto-bibliography)
-
("\\\\add\\(?:global\\|section\\)bib\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\\\n\r\.]+\\)\\(?:\\..+\\)?}"
1 LaTeX-auto-bibliography)
+
("\\\\add\\(?:global\\|section\\)bib\\(?:\\[[^]]+\\]\\)?{\\([^#}\\\n\r.]+\\)\\(?:\\..+\\)?}"
1 LaTeX-auto-bibliography)
("\\\\newrefsection\\[\\([^]]+\\)\\]" 1 LaTeX-split-bibs)
("\\\\begin{refsection}\\[\\([^]]+\\)\\]" 1 LaTeX-split-bibs)))
LaTeX-auto-class-regexp-list
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 59ef4751 2/2: Simplify regexp,
Ikumi Keita <=