🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87163

19.26: fontification bug in c++

#87163
From: Tom Tromey
Date: Tue, 11 Oct 1994 06:40
23 lines
1268 bytes
Emacs 19.26 running on a Sun Sparc 5, SunOS 4.1.3.

Font-lock mode in C++ doesn't always fontify correctly.  In particular
it will recognize "class" even when it is not really a keyword.  Here
is a recipe:

* emacs -q
* Get a c++-mode buffer (find-file /tmp/q.cc)
* Put the following text into the buffer:

int z_class (void)
{
}

* M-x font-lock-mode

Now notice that "class" is in the wrong face.  (In my case it is bold).

Tom
---
tromey@busco.lanl.gov             Member, League for Programming Freedom
Nobody owns life, but anybody who owns a frying pan owns death.
	-- William S Burroughs
Technical Details
Message-ID: <9410110639.AA12174@busco.lanl.gov>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!busco.lanl.GOV!tromey

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,206a4555805475c4,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-10-11 14:27:20 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!busco.lanl.GOV!tromey
From: tromey@busco.lanl.GOV (Tom Tromey)
Newsgroups: gnu.emacs.bug
Subject: 19.26: fontification bug in c++
Date: 11 Oct 1994 02:40:42 -0400
Organization: GNUs Not Usenet
Lines: 23
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9410110639.AA12174@busco.lanl.gov>