[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 275/299: Font-lock fix for verbatim environment args.
From: |
Stefan Monnier |
Subject: |
[elpa] 275/299: Font-lock fix for verbatim environment args. |
Date: |
Sun, 02 Nov 2014 03:11:56 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit e515ecd5da1ebada550cd8d62a2f48c569671d85
Author: Tassilo Horn <address@hidden>
Date: Mon Aug 18 09:56:05 2014 +0200
Font-lock fix for verbatim environment args.
* font-latex.el (font-latex-set-syntactic-keywords): Allow for a
mandatory argument for a verbatim environment.
---
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
"^[ \t]*\\\\begin *{\\(?:" verb-envs "\\)}"
- ;; Some environments accept an optional argument that can
- ;; span over more lines. Between "\begin{<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
+ ;; "\begin{<envname>}" and the optional argument there
+ ;; can be whitespaces and the newline can be commented
+ ;; by a "%" character.
"[ \t]*\\(?:%.*\n[ \t]*\\)?"
;; 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).
+ "\\(?:{[^}]+}\\)?"
"\\(\n\\)")
(1 "|" t)))
(add-to-list 'font-latex-syntactic-keywords
- [elpa] 260/299: Improve selection of the forward/inverse search method., (continued)
- [elpa] 260/299: Improve selection of the forward/inverse search method., Stefan Monnier, 2014/11/01
- [elpa] 262/299: Fix some XEmacs compilation issues., Stefan Monnier, 2014/11/01
- [elpa] 264/299: Fix some runtime issues in XEmacs., Stefan Monnier, 2014/11/01
- [elpa] 248/299: Implement TeX-previous-error., Stefan Monnier, 2014/11/01
- [elpa] 267/299: Remove .cvsignore and tests from the release tarball., Stefan Monnier, 2014/11/01
- [elpa] 265/299: Fix other runtime issues in XEmacs and Emacs 21., Stefan Monnier, 2014/11/01
- [elpa] 269/299: Fix outline promotion/demotion., Stefan Monnier, 2014/11/01
- [elpa] 261/299: Hide some entries of the Command menu when not available., Stefan Monnier, 2014/11/01
- [elpa] 256/299: Implement error overview., Stefan Monnier, 2014/11/01
- [elpa] 271/299: Keep error overview window if View command is run., Stefan Monnier, 2014/11/01
- [elpa] 275/299: Font-lock fix for verbatim environment args.,
Stefan Monnier <=
- [elpa] 274/299: Adapt mathtools.el to latest amsmath.el changes., Stefan Monnier, 2014/11/01
- [elpa] 270/299: Manage auto insertion of labels., Stefan Monnier, 2014/11/01
- [elpa] 272/299: Rename LaTeX-auto-insert-label and document its use for sections., Stefan Monnier, 2014/11/01
- [elpa] 277/299: Change Vincent's email address in ChangeLog., Stefan Monnier, 2014/11/01
- [elpa] 268/299: Add customizable option for default date format., Stefan Monnier, 2014/11/01
- [elpa] 273/299: Change again method to determine whether a label should be inserted., Stefan Monnier, 2014/11/01
- [elpa] 266/299: Auto insertion of ampersands., Stefan Monnier, 2014/11/01
- [elpa] 280/299: Bugfix in file name expansion., Stefan Monnier, 2014/11/01
- [elpa] 283/299: Document TeX-add-style-hook's new 3rd argument., Stefan Monnier, 2014/11/01
- [elpa] 279/299: Add test for the %` expander., Stefan Monnier, 2014/11/01