auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] \verb like macro allowing input on more than one line


From: Tassilo Horn
Subject: Re: [AUCTeX] \verb like macro allowing input on more than one line
Date: Thu, 16 Oct 2014 14:06:46 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

Hi Jean-Francois,

yes, I've forgotten a `regex-opt' there:

--8<---------------cut here---------------start------------->8---
(defvar fjbu/LaTeX-verbatim-macros-with-delims-local
  '("everb"))

(defun fjbu/LaTeX-activate-font-lock-for-multiline-verb-macros ()
  (add-to-list 'font-latex-syntactic-keywords
               `(,(concat "\\\\\\(?:" (regexp-opt 
fjbu/LaTeX-verbatim-macros-with-delims-local) "\\)"
                          "\\(address@hidden)\\(?:\n\\|.\\)*?"
                          "\\(" (regexp-quote TeX-esc) "*\\)\\(\\1\\)")
                 (1 "\"") (2 ".") (3 "\""))))

(add-hook 'LaTeX-mode-hook
          #'fjbu/LaTeX-activate-font-lock-for-multiline-verb-macros)
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo




reply via email to

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