[Top][All Lists]

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

Re: Font-lock should ignore missing submatches

From: Chong Yidong
Subject: Re: Font-lock should ignore missing submatches
Date: Mon, 04 Feb 2008 00:12:19 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.90 (gnu/linux)

Jorgen Schaefer <forcer@forcix.cx> writes:

> When using font-lock-mode to highlight complex expressions, the
> font locking engine crashes when one of the subexpressions
> specified was not matched.

The engine doesn't "crash"; it signals an error, and Emacs continues
to function.  This is the intended behavior.

> Is there any chance to make font-lock just ignore unmatched
> subexpressions?

Yes.  See the LAXMATCH option in the node Customizing Keywords in the
Emacs Lisp Reference Manual.

reply via email to

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