branch: externals/auctex
commit 5343cf2ec39f34805353f572b9f993e5a30c2784
Author: Arash Esbati <[email protected]>
Commit: Arash Esbati <[email protected]>
Be aware of comments in docTeX-mode
* latex.el (LaTeX-completion-find-argument-boundaries): Don't
ignore comments in docTeX-mode.
---
latex.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/latex.el b/latex.el
index 98fe005b0d..c5965b0514 100644
--- a/latex.el
+++ b/latex.el
@@ -8091,7 +8091,7 @@ taken."
(narrow-to-region (line-beginning-position -40)
(line-beginning-position 40))
(let ((args (or args (LaTeX-completion-macro-delimiters)))
- (parse-sexp-ignore-comments t))
+ (parse-sexp-ignore-comments (not (eq major-mode 'docTeX-mode))))
(condition-case nil
(with-syntax-table (apply #'TeX-search-syntax-table args)
(scan-lists (point) 1 1))