[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-devel] Mandatory arguments in TeX/LaTeX and font locking
From: |
Ralf Angeli |
Subject: |
[AUCTeX-devel] Mandatory arguments in TeX/LaTeX and font locking |
Date: |
Mon, 01 May 2006 12:52:30 +0200 |
The font locking code in the multiline-font-lock branch currently
marks stuff like
\newcommand\foo{\bar}
as erroneous because the syntax of \newcommand is specified as
"*{}[][]{}" (meaning there is a starred version of the command and the
macro expects a mandatory argument followed by to optional arguments
followed by a mandatory argument) and the first mandatory argument is
not braced in the example.
Are braces generally not necessary if only a single macro is
concerned? That means for font locking, can we treat the forms
\newcommand{\foo}{\bar}
\newcommand{\foo}\bar
\newcommand\foo{\bar}
\newcommand\foo\bar
as being equivalent and correct?
--
Ralf
- [AUCTeX-devel] Mandatory arguments in TeX/LaTeX and font locking,
Ralf Angeli <=