bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: font lock problem in C mode


From: martin rudalics
Subject: Re: font lock problem in C mode
Date: Fri, 15 Jun 2007 22:27:02 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> Put the following C comment into a file, called e.g. "s.c"
>
> /**
>  * Simple comment.
>  */
>
> and then do:
>
> $emacs -q s2.c
>
> The comment is fontified as a "string", rather than a "comment".

It is fontified as a "doc-string" (if you customize `font-lock-doc-face'
you will see the difference).

> If I
> delete the 2nd asterisk on the first line, the font switches correctly
> to be fontified as a comment.

It is a "feature".  Alan Mackenzie will explain this carefully and in
full detail ... Alan, good evening, it's me again ;-)





reply via email to

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