From: Antoine Levitt <antoine.levitt@gmail.com>
To: martin rudalics <rudalics@gmx.at>
Cc: 3417@emacsbugs.donarmstrong.com
Subject: bug#3417: c-mode uses font-lock-doc-face for /**
Date: Fri, 29 May 2009 19:03:05 +0200 [thread overview]
Message-ID: <6fa54e4e0905291003k55d24a6dncebf416b28062f40@mail.gmail.com> (raw)
In-Reply-To: <4A20117B.8040605@gmx.at>
[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]
Using your variable as a starting point, I found this :
for gtkdoc (default in C), regexp is :
(c-font-lock-doc-comments "/\\*\\*$" limit
gtkdoc-font-lock-doc-comments)
for javadoc, it's :
(c-font-lock-doc-comments "/\\*\\*" limit
javadoc-font-lock-doc-comments)))))
Gtkdoc manual specifies :
A multiline comment that starts with an additional '*' marks a documentation
block that will be processed by the Gtk-Doc tools.
Shouldn't the regexp for gtkdoc be "/\\*\\*" then ? (without the $)
2009/5/29 martin rudalics <rudalics@gmx.at>
> > Compare :
> > /**
> > some file
> > */
> > with
> > /*
> > some file
> > */
> >
> > In the first case, font-lock-doc-face is used, in the second
> > font-lock-comment-face is.
> >
> > The first example fontifies with doc-face only if there is just "/**" :
> > "/*", "/** " (with a space) or "/***", for instance, use the standard
> > comment-face.
> >
> > This is using emacs 23.0.94.1, and was reproduced on emacs22 as well. C++
> > and obj-C aren't affected, and java also shows this behavior on "/***""
> and
> > "/** "/
> >
> > This behavior is certainly unexpected : I expect all comments to be
> > fontified with the same face. Am I right in thinking it's a bug ?
>
> Have you tried to customize `c-doc-comment-style'?
>
> martin
>
[-- Attachment #2: Type: text/html, Size: 2026 bytes --]
next prev parent reply other threads:[~2009-05-29 17:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <jwvprdrnbkf.fsf-monnier+emacsbugreports@gnu.org>
2009-05-29 14:45 ` bug#3417: c-mode uses font-lock-doc-face for /** Antoine Levitt
2009-05-29 16:05 ` bug#3417: marked as done (c-mode uses font-lock-doc-face for /**) Emacs bug Tracking System
2009-05-29 16:46 ` bug#3417: c-mode uses font-lock-doc-face for /** martin rudalics
2009-05-29 17:03 ` Antoine Levitt [this message]
2009-05-29 17:10 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6fa54e4e0905291003k55d24a6dncebf416b28062f40@mail.gmail.com \
--to=antoine.levitt@gmail.com \
--cc=3417@emacsbugs.donarmstrong.com \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.