[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Question reg. font-locking
From: |
Arash Esbati |
Subject: |
[AUCTeX-devel] Question reg. font-locking |
Date: |
Sat, 13 Feb 2016 21:45:58 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 |
Hi all,
I have written a style for titlesec.sty (attached for reference) and I
have a question reg. font-locking. titlesec.sty has two macros which
alter the number of mandatory arguments when invoked with `*':
1)
\titleformat{<command>}[<shape>]{<format>}{<label>}{<sep>}{<before-code>}[<after-code>]
\titleformat*{<command>}{<format>}
2) \titlerule[<height>]
\titlerule*[<width>]{<text>}
As for \titlerule, the usual way within a style with:
(font-latex-add-keywords '(("titlerule" "*[{"))
'function)
does not work any more. I rather need something like this:
(font-latex-add-keywords '(("titlerule" "[")
("titlerule*" "[{"))
'function)
Is there a way to make `*' part of the macro?
Best, Arash
titlesec.el
Description: application/emacs-lisp
- [AUCTeX-devel] Question reg. font-locking,
Arash Esbati <=