[Top][All Lists]

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

Re: Mysterious fontification/C++ context issue

From: martin rudalics
Subject: Re: Mysterious fontification/C++ context issue
Date: Mon, 11 Dec 2006 09:32:22 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

>>BTW, in Elisp an open bracket in column zero of a string should not
>>confuse Emacs.  Yet you highlight it with `font-lock-warning-face'.
> Indeed, it *shouldn't*, but it does confuse Emacs, which is why it's
> highlighted ;-(.  We should fix it so it doesn't confuse Emacs any more (and
> doesn't get highlighted either).

Due to the fact that "\\s(" is hardwired in `font-lock-compile-keywords'
and can't be set individually by a major mode.  A minor issue showing
that it's not entirely trivial to give a simple recipe fitting all major

What I meant is "stay away from putting an open paren in column zero
unless it starts a defun" in any programming mode where "open paren" is
what the syntax table says it is.  It's one constraint for the user,
easy to explain, understand, and implement, difficult to defend, tho.

reply via email to

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