From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jordan Saunders" Newsgroups: gmane.emacs.bugs Subject: bug#1953: Syntax Highlighting Problem in c++-mode Date: Sun, 18 Jan 2009 22:28:04 -0500 Message-ID: <69c9159d0901181928u289f3a66r8b5309c7b963120b@mail.gmail.com> Reply-To: Jordan Saunders , 1953@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10397_22300775.1232335684902" X-Trace: ger.gmane.org 1232345091 2022 80.91.229.12 (19 Jan 2009 06:04:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2009 06:04:51 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 19 07:06:01 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LOnGT-0000z4-N9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jan 2009 07:05:51 +0100 Original-Received: from localhost ([127.0.0.1]:45646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOnFC-0001fO-61 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jan 2009 01:04:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOlMd-0003tu-Eo for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 23:03:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOlMc-0003tg-OV for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 23:03:50 -0500 Original-Received: from [199.232.76.173] (port=52682 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOlMc-0003td-Jt for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 23:03:50 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57740) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LOlMb-0008Bi-QG for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 23:03:50 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0J43RiN022142; Sun, 18 Jan 2009 20:03:27 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0J404Cf021078; Sun, 18 Jan 2009 20:00:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "Jordan Saunders" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 19 Jan 2009 04:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1953 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123233709019749 (code B ref -1); Mon, 19 Jan 2009 04:00:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Jan 2009 03:51:30 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0J3pQl4019743 for ; Sun, 18 Jan 2009 19:51:27 -0800 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOlAc-0006AB-5k for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 22:51:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOlAb-00069B-Iy for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 22:51:25 -0500 Original-Received: from [199.232.76.173] (port=37311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOlAb-00068p-2o for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 22:51:25 -0500 Original-Received: from yx-out-1718.google.com ([74.125.44.158]:26959) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOlAa-0007ED-IZ for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 22:51:24 -0500 Original-Received: by yx-out-1718.google.com with SMTP id 34so1078440yxf.66 for ; Sun, 18 Jan 2009 19:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=iMmnJFyYCy5PUHPFPkP46FtKtjxMwsBctOem+gan0tw=; b=LWbmH+5OGp6fbwJMRF7U9v9cURr/0XetwErOVO4E4VsKDWV963fGsXmrZzpL4EZJC5 ka0Cbi0DXzpKo/AvA0W6vCtfTyN1+ZTOaX4rymcuRlE5DO75o3m51VxzXY/ZOv9m1dEI aYJp4MHl5IJtN5IrGTxCP7ybpHIF5TYwd5KOI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=qHIR7y1m2RRby2SyPvcUDqhMB8fKeSapHv2lljWWedzIqHCbzXyhp8t2nxPj8JFi+H YAXICLRzn46Zimj5QRL6z4465HJbqz7JWyrLIJQ93fcuzIVu264OloAsFFChHuNSecTD cY/+v5S2vAf/nCkxKHIAnd2CHTXv4xScOUu2w= Original-Received: by 10.100.107.3 with SMTP id f3mr3651054anc.28.1232335684904; Sun, 18 Jan 2009 19:28:04 -0800 (PST) Original-Received: by 10.100.93.15 with HTTP; Sun, 18 Jan 2009 19:28:04 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 18 Jan 2009 23:03:50 -0500 X-Mailman-Approved-At: Mon, 19 Jan 2009 01:02:31 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24269 Archived-At: ------=_Part_10397_22300775.1232335684902 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Given the following circumstance in c++-mode: class blah { blah(int) {} }; blah::blah is not recognized by the syntax highlighter as a constructor and the syntax highlighting is incorrect. If we give the first parameter an actual name (i.e. int a, for example), it is recognized and things are peachy. Thank you. In GNU Emacs 22.3.1 (i386-mingw-nt6.0.6001) of 2008-09-06 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENC locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: encoded-kbd-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: t Recent input: SPC b a l a h C-x C-s M-x r e p o r t - e m Recent messages: ("C:\\emacs-22.3\\bin\\emacs.exe" "C:\\home\\ogawd\\util\\matrix.h") Loading encoded-kb...done For information about GNU Emacs and the GNU system, type C-h C-a. Loading cc-mode...done Wrote c:/home/ogawd/util/matrix.h Loading emacsbug...done ------=_Part_10397_22300775.1232335684902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Given the following circumstance in c++-mode:

class blah
{
    blah(int) {}
};

blah::blah is not recognized by the syntax highlighter as a constructor and the syntax highlighting is incorrect. If we give the first parameter an actual name (i.e. int a, for example), it is recognized and things are peachy.

Thank you.


In GNU Emacs 22.3.1 (i386-mingw-nt6.0.6001)
 of 2008-09-06 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 6.0.6001
configured using `configure --with-gcc (3.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENC
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: C++/l

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  abbrev-mode: t

Recent input:
<wheel-down> <wheel-down> <wheel-down> <wheel-down>
<wheel-down> <wheel-down> <wheel-up> <double-wheel-up>
<triple-wheel-up> <wheel-down> <help-echo> <C-up> <C-up>
<C-up> <C-up> <down> <down> <end> <left> <left> SPC
b a <backspace> l a h <C-backspace> <backspace> C-x
C-s <help-echo> <help-echo> <help-echo> M-x r e p o
r t - e m <tab> <return>

Recent messages:
("C:\\emacs-22.3\\bin\\emacs.exe" "C:\\home\\ogawd\\util\\matrix.h")
Loading encoded-kb...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Loading cc-mode...done
Wrote c:/home/ogawd/util/matrix.h
Loading emacsbug...done

------=_Part_10397_22300775.1232335684902--