[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa 75d672c 09/16: Improve font-locking of verbatim environments
From: |
Tassilo Horn |
Subject: |
[elpa] elpa 75d672c 09/16: Improve font-locking of verbatim environments |
Date: |
Fri, 14 Oct 2016 16:03:33 +0000 (UTC) |
branch: elpa
commit 75d672cfd20f47e2fd8271551b5e299f204b56c5
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Improve font-locking of verbatim environments
* font-latex.el (font-latex-set-syntactic-keywords): Handle case where
verbatim content immediately follows \begin{verb-env}.
---
font-latex.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/font-latex.el b/font-latex.el
index 12ebd04..71004cd 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -941,7 +941,10 @@ have changed."
;; another mandatory argument(s) (e.g. with VerbatimOut
or
;; the minted envs or defined with `lstnewenvironment').
"\\(?:{[^}]+}\\)*"
- "\\(\n\\)")
+ ;; Now match the final newline. The "." alternative
+ ;; catches the case where verbatim content is written
+ ;; immediately after the \begin{verbatim}.
+ "\\(\n\\|.\\)")
(1 "|" t)))
(add-to-list 'font-latex-syntactic-keywords
;; Using the newline character for the syntax
- [elpa] elpa c9bc7d6 03/16: ; Query for second mandatory argument., (continued)
- [elpa] elpa c9bc7d6 03/16: ; Query for second mandatory argument., Tassilo Horn, 2016/10/14
- [elpa] elpa bc23073 05/16: ; Turn mandatory argument to optional, Tassilo Horn, 2016/10/14
- [elpa] elpa 50b63b0 07/16: Improve style/graphicx.el, Tassilo Horn, 2016/10/14
- [elpa] elpa 0392f01 04/16: ; Fix a typo, Tassilo Horn, 2016/10/14
- [elpa] elpa b90986f 01/16: Fix type of ConTeXt-Mark-version option, Tassilo Horn, 2016/10/14
- [elpa] elpa 9e627fc 02/16: Do not use a function from cl, Tassilo Horn, 2016/10/14
- [elpa] elpa 785eabf 11/16: Don't require \end{env} is on a separate line, Tassilo Horn, 2016/10/14
- [elpa] elpa 84d31ca 10/16: Fix default command after running BibTeX with warnings, Tassilo Horn, 2016/10/14
- [elpa] elpa 0c955d5 15/16: Fix TeX--if-macro-fboundp edebug spec, Tassilo Horn, 2016/10/14
- [elpa] elpa 86a4c75 12/16: Add information about prettify and semi WYSIWYG features., Tassilo Horn, 2016/10/14
- [elpa] elpa 75d672c 09/16: Improve font-locking of verbatim environments,
Tassilo Horn <=
- [elpa] elpa 18f1783 06/16: Cherry-pick 9c24759a96f41e288841ec2e815d62d58dc01e7a from elpa branch, Tassilo Horn, 2016/10/14
- [elpa] elpa 0762736 13/16: Improve docs added/changed in last commit, Tassilo Horn, 2016/10/14
- [elpa] elpa eb2d64b 14/16: Fix to my previous commit, Tassilo Horn, 2016/10/14
- [elpa] elpa 3654a62 08/16: Improve style/bidi and add make file entry., Tassilo Horn, 2016/10/14
- [elpa] elpa 5489ef2 16/16: Merge branch 'master' into elpa, Tassilo Horn, 2016/10/14