[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] elpa 785eabf 11/16: Don't require \end{env} is on a separate line
From: |
Tassilo Horn |
Subject: |
[elpa] elpa 785eabf 11/16: Don't require \end{env} is on a separate line |
Date: |
Fri, 14 Oct 2016 16:03:33 +0000 (UTC) |
branch: elpa
commit 785eabfd6dc8ad1b174bdad449cb2a7d408e1a69
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Don't require \end{env} is on a separate line
* font-latex.el (font-latex-make-user-keywords):
(font-latex-set-syntactic-keywords): Don't require that \end{env} is on
a line of its own. Also allow empty mandatory argument in verbatim
environments.
---
font-latex.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/font-latex.el b/font-latex.el
index 71004cd..fb7f8d6 100644
--- a/font-latex.el
+++ b/font-latex.el
@@ -805,7 +805,7 @@ Generated by `font-latex-make-user-keywords'.")))
;; Hack to remove the verbatim face from the \ in
;; \end{verbatim} and similar. The same hack is used in
;; tex-mode.el.
- ("^[ \t]*\\(\\\\\\)end"
+ ("\\(\\\\\\)end"
(1 (get-text-property (match-end 1) 'face) t))))
(add-to-list 'font-latex-keywords-1 item)
(add-to-list 'font-latex-keywords-2 item))
@@ -940,7 +940,7 @@ have changed."
;; After the optional argument, there may also be
;; another mandatory argument(s) (e.g. with VerbatimOut
or
;; the minted envs or defined with `lstnewenvironment').
- "\\(?:{[^}]+}\\)*"
+ "\\(?:{[^}]*}\\)*"
;; Now match the final newline. The "." alternative
;; catches the case where verbatim content is written
;; immediately after the \begin{verbatim}.
@@ -954,7 +954,7 @@ have changed."
;; the starting backslash of \end. There is a hack
;; in `font-latex-make-user-keywords' to remove the
;; spurious fontification of the backslash.
- `(,(concat "^[ \t]*\\(\\\\\\)end *{\\(?:" verb-envs "\\)}")
+ `(,(concat "\\(\\\\\\)end *{\\(?:" verb-envs "\\)}")
(1 "|" t))))
(unless (= (length verb-macros-with-delims) 0)
(add-to-list 'font-latex-syntactic-keywords
- [elpa] elpa updated (9c24759 -> 5489ef2), Tassilo Horn, 2016/10/14
- [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 <=
- [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, 2016/10/14
- [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