[Top][All Lists]

[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 `*':


2) \titlerule[<height>]

As for \titlerule, the usual way within a style with:

(font-latex-add-keywords '(("titlerule"  "*[{"))

does not work any more.  I rather need something like this:

(font-latex-add-keywords '(("titlerule"  "[")
                           ("titlerule*" "[{"))

Is there a way to make `*' part of the macro?

Best, Arash

Attachment: titlesec.el
Description: application/emacs-lisp

reply via email to

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