From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#11865: 24.1.50; doxygen comments not highlighted in c++-mode Date: Wed, 24 Feb 2016 17:29:32 +1100 Message-ID: <871t82d3jn.fsf@gnus.org> References: <81f18f30cc17d41a72b8c0e6e77a1ee7@tonotdo.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456295482 15800 80.91.229.3 (24 Feb 2016 06:31:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 06:31:22 +0000 (UTC) Cc: 11865@debbugs.gnu.org To: Toon Claes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 07:31:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aYSyc-0004ZD-TS for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 07:31:11 +0100 Original-Received: from localhost ([::1]:33844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSyc-0003Ri-Dg for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 01:31:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSyZ-0003Rb-Hb for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 01:31:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYSyU-0005cB-Ff for bug-gnu-emacs@gnu.org; Wed, 24 Feb 2016 01:31:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45217) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYSyU-0005bo-BE; Wed, 24 Feb 2016 01:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aYSyU-0002AP-1n; Wed, 24 Feb 2016 01:31:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Wed, 24 Feb 2016 06:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11865 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: patch Original-Received: via spool by 11865-submit@debbugs.gnu.org id=B11865.14562954037982 (code B ref 11865); Wed, 24 Feb 2016 06:31:01 +0000 Original-Received: (at 11865) by debbugs.gnu.org; 24 Feb 2016 06:30:03 +0000 Original-Received: from localhost ([127.0.0.1]:42344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSxW-00024U-IY for submit@debbugs.gnu.org; Wed, 24 Feb 2016 01:30:03 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:42121) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aYSxU-00023k-Cg for 11865@debbugs.gnu.org; Wed, 24 Feb 2016 01:30:00 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aYSx6-0003H4-K2; Wed, 24 Feb 2016 07:29:37 +0100 In-Reply-To: <81f18f30cc17d41a72b8c0e6e77a1ee7@tonotdo.com> (Toon Claes's message of "Tue, 10 Jul 2012 08:59:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aYSx6-0003H4-K2 MailScanner-NULL-Check: 1456900177.79524@hdIixpCTcZwFLNlLCR8SKQ X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113681 Archived-At: Toon Claes writes: > +2012-07-06 Toon Claes > + > + * progmodes/cc-fonts.el (gtkdoc-font-lock-keywords): > + Less restrictive checking for gtkdoc. > + > + * progmodes/cc-vars.el: For c++-mode set gtkdoc the default > + c-doc-comment-style. > + [...] I am completely unfamiliar with the gtkdoc format, so I can't really judge whether this makes sense or not. Anybody? > === modified file 'lisp/progmodes/cc-fonts.el' > --- lisp/progmodes/cc-fonts.el 2012-01-19 07:21:25 +0000 > +++ lisp/progmodes/cc-fonts.el 2012-07-06 13:49:00 +0000 > @@ -2572,7 +2572,7 @@ > > (defconst gtkdoc-font-lock-keywords > `((,(lambda (limit) > - (c-font-lock-doc-comments "/\*\*$" limit > + (c-font-lock-doc-comments "/\*\*\([^\*/].*\)?$" limit > gtkdoc-font-lock-doc-comments) > (c-font-lock-doc-comments "/\*< " limit > gtkdoc-font-lock-doc-protection) > > === modified file 'lisp/progmodes/cc-vars.el' > --- lisp/progmodes/cc-vars.el 2012-02-11 22:13:29 +0000 > +++ lisp/progmodes/cc-vars.el 2012-07-06 13:48:46 +0000 > @@ -552,7 +552,8 @@ > (defcustom-c-stylevar c-doc-comment-style > '((java-mode . javadoc) > (pike-mode . autodoc) > - (c-mode . gtkdoc)) > + (c-mode . gtkdoc) > + (c++-mode . gtkdoc)) > "*Specifies documentation comment style(s) to recognize. > This is primarily used to fontify doc comments and the markup within > them, e.g. Javadoc comments. > @@ -562,7 +563,7 @@ > > javadoc -- Javadoc style for "/** ... */" comments (default in Java > mode). > autodoc -- Pike autodoc style for "//! ..." comments (default in Pike > mode). > - gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C > mode). > + gtkdoc -- GtkDoc style for "/** ... **/" comments (default in C/C++ > mode). > > The value may also be a list of doc comment styles, in which case all > of them are recognized simultaneously (presumably with markup cues > > > > -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no