[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 715a88a5: Treat backslash in verbatim macro arguments correctly
From: |
Arash Esbati |
Subject: |
master 715a88a5: Treat backslash in verbatim macro arguments correctly |
Date: |
Thu, 11 May 2023 15:40:12 -0400 (EDT) |
branch: master
commit 715a88a5f265135a13e860119a252c3fbf8b4e41
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Treat backslash in verbatim macro arguments correctly
* tex.el (TeX-brace-count-line): Check if the ?\\ char is inside a
verbatim construct where the backslash doesn't escape the next
character. (bug#63441)
(TeX-search-syntax-table): Remove unneeded escaping in docstring.
---
tex.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tex.el b/tex.el
index b862d3c2..0a5e6cbd 100644
--- a/tex.el
+++ b/tex.el
@@ -5485,7 +5485,10 @@ additional characters."
(setq count (- count TeX-brace-indent-level)))
((eq char ?\\)
(when (< (point) limit)
- (forward-char)
+ ;; ?\\ in verbatim constructs doesn't escape
+ ;; the next char
+ (unless (TeX-verbatim-p)
+ (forward-char))
t))))))
count)))
@@ -5508,7 +5511,7 @@ It should be accessed through the function
`TeX-search-syntax-table'.")
"Return a syntax table for searching purposes.
ARGS may be a list of characters. For each of them the
respective predefined syntax is set. Currently the parenthetical
-characters ?{, ?}, ?[, ?], ?\(, ?\), ?<, and ?> are supported.
+characters ?{, ?}, ?[, ?], ?(, ?), ?<, and ?> are supported.
The syntax of each of these characters not specified will be
reset to \" \"."
(let ((char-syntax-alist '((?\{ . "(}") (?\} . "){")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 715a88a5: Treat backslash in verbatim macro arguments correctly,
Arash Esbati <=