[Top][All Lists]

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

Re: CC Mode 5.27 (C); Syntax highlighting after parens in quotes

From: Stefan Monnier
Subject: Re: CC Mode 5.27 (C); Syntax highlighting after parens in quotes
Date: 08 Jul 2001 11:19:17 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104

>>>>> "Richard" == Richard Stallman <rms@gnu.org> writes:
>     I've verified this in Emacs 20.7 and 21.0.100. Afaics, it's an issue
>     either in the builtin syntax routines, or perhaps on a low level in
>     font-lock.el. The C specific font lock settings only sets appropriate
>     entries in the syntax tables for this, so it can hardly be the faulty
>     part.
> Can you find which specific primitive is doing the wrong thing,
> and send a bug report for that primitive?

Did my reply get lost ?
It's a known problem.  It's because of
`font-lock-beginning-of-syntax-function' which is set to
`beginning-of-defun' in CC modes.  It's the exact same problem as when
you put an open-paren in column 0 in an elisp docstring.
I.e. the problem in the guy's code is not that he has a \\\n inside
a string, but that he has \n( inside his string.

Setting font-lock-beginning-of-syntax-function to nil will fix the
problem (and occasionally slow down font-lock substantially).


reply via email to

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