branch: externals/auctex
commit 6d3ecf343257ac44edc577d9d6677d07815eabe8
Author: Tassilo Horn <[email protected]>
Commit: Tassilo Horn <[email protected]>
Don't treat comments with whitespace before % as code comments
* latex.el (LaTeX-fill-region-as-paragraph): Don't treat comments with
whitespace before % as code comments (mentioned as addendum to
bug#47757).
---
latex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/latex.el b/latex.el
index 3330037..beaa0dd 100644
--- a/latex.el
+++ b/latex.el
@@ -3783,7 +3783,7 @@ performed in that case."
(if (re-search-forward
(concat "\\("
;; Code comments.
- "[^\r\n%\\]\\([ \t]\\|\\\\\\\\\\)*"
+ "[^ \r\n%\\]\\([ \t]\\|\\\\\\\\\\)*"
TeX-comment-start-regexp
"\\|"
;; Lines ending with `\par'.