auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] [elpa] externals/auctex 901b20a 22/69: Merge branch 'mast


From: Tassilo Horn
Subject: [AUCTeX-devel] [elpa] externals/auctex 901b20a 22/69: Merge branch 'master' into simplify-TeX-parse-error
Date: Sat, 26 Mar 2016 21:36:33 +0000

branch: externals/auctex
commit 901b20a29361df62d85f3053995cc4a80845a502
Merge: 95bef06 e515ecd
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>

    Merge branch 'master' into simplify-TeX-parse-error
---
 ChangeLog     |    5 +++++
 font-latex.el |   13 +++++++++----
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 19e019c..791a5a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-18  Tassilo Horn  <address@hidden>
+
+       * font-latex.el (font-latex-set-syntactic-keywords): Allow for a
+       mandatory argument for a verbatim environment.
+
 2014-08-15  Vladimir Lomov  <address@hidden>
 
        * style/mathtools.el ("mathtools"): Don't use the removed
diff --git a/font-latex.el b/font-latex.el
index 217d302..b6226b1 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -906,10 +906,11 @@ have changed."
       (add-to-list 'font-latex-syntactic-keywords
                   `(,(concat
                       "^[      ]*\\begin *{\(?:" verb-envs "\)}"
-                      ;; Some environments accept an optional argument that can
-                      ;; span over more lines.  Between "egin{<envname>}" and
-                      ;; the optional argument there can be whitespaces and the
-                      ;; newline can be commented by a "%" character.
+                      ;; Some environments accept an optional and/or mandatory
+                      ;; argument that can span over more lines.  Between
+                      ;; "egin{<envname>}" and the optional argument there
+                      ;; can be whitespaces and the newline can be commented
+                      ;; by a "%" character.
                       "[       ]*\(?:%.*
[       ]*\)?"
                       ;; The following line of the regexp matches the optional
                       ;; argument and allows for up to one level of brackets
@@ -917,6 +918,10 @@ have changed."
                       ;; in the `lstlisting' environment by the `listings'
                       ;; package).
                       "\(?:\[[^\]\[]*\(?:\[[^\]\[]*\][^\]\[]*\)*\]\)?"
+                      ;; After the optional argument, there may also be
+                      ;; another mandatory argument (e.g. with VerbatimOut or
+                      ;; the minted envs).
+                      "\(?:{[^}]+}\)?"
                       "\(
\)")
                     (1 "|" t)))
       (add-to-list 'font-latex-syntactic-keywords



reply via email to

[Prev in Thread] Current Thread [Next in Thread]