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 mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to