[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex d3d9dc089b 16/37: Disallow opening square bracke
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex d3d9dc089b 16/37: Disallow opening square brackets as verb delimiter |
Date: |
Wed, 11 Oct 2023 03:41:55 -0400 (EDT) |
branch: externals/auctex
commit d3d9dc089b4b4f1aa07d162da6c054f45d42e28a
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Disallow opening square brackets as verb delimiter
* font-latex.el (font-latex-set-syntactic-keywords): Disallow '['
as verbatim delimiter in order to fix fontification problems and
catch up with `LaTeX-verbatim-macro-boundaries'.
---
font-latex.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index 7617b5cc84..8fc567e292 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -1083,8 +1083,10 @@ have changed."
"\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)?"
;; An opening curly brace as delimiter is valid, but
;; allowing it might screw up fontification of stuff
- ;; like "\url{...} foo \textbf{<--!...}".
- "\\([^a-z@*\n\f{]\\).*?"
+ ;; like "\url{...} foo \textbf{<--!...}". Also
+ ;; disallow an opening square bracket which produces
+ ;; confusion in "\Verb[key-val]{foo[<--!}"
+ "\\([^a-z@*\n\f{[]\\).*?"
;; Give an escape char at the end of the verbatim
;; construct punctuation syntax. Prevents wrong
;; fontification of stuff like "\verb|foo\|".
- [elpa] externals/auctex updated (311d292163 -> 75702683d0), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex dc40d6e812 05/37: Fix bug#64921, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 65330be8e6 02/37: ; Trivial cleanups, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 66941e5aad 11/37: ; * doc/changes.texi: Fix typo., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex d3d9dc089b 16/37: Disallow opening square brackets as verb delimiter,
Tassilo Horn <=
- [elpa] externals/auctex c273efdeb2 18/37: Honor file local variable (bug#65750), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex b18e98cbec 04/37: Follow-up fix for doc string (bug#65195), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 3c03ee089a 01/37: Add missing alternative for custom type, Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 2151c3831f 17/37: Honor file local value for `LaTeX-section-list' (bug#65750), Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 338c5d0a4b 30/37: * latex.el (LaTeX-auto-index-regexp-list): Save regexp groups., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex d436191cef 31/37: * latex.el (LaTeX-auto-class-regexp-list): Save regexp groups., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex cb0e671b0c 34/37: ; * tex-site.el.in (BibTeX-auto-store): Pacify the compiler., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex e3d0a7dca5 06/37: * latex.el: Require subr-x.el during byte-compilation., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex 034c528741 33/37: * latex.el (LaTeX-auto-regexp-list): Save regexp groups., Tassilo Horn, 2023/10/11
- [elpa] externals/auctex e4c48a5a02 12/37: Improve tex-jp.el politeness, Tassilo Horn, 2023/10/11