🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #88081

font-lock-type-face works wrong in font-lock-mode

#88081
From: Trifunovski Vineto
Date: Mon, 08 Aug 1994 23:06
30 lines
1402 bytes
I have some minor problem with the fontificatio of type faces.

In a statement like this :

typedef void (*FuncPtr)(void);

the first void is treated as a function and will have a function-face attribute set 
to it.

If I type a leading space in front of typedef like 

 typedef void (*FuncPtr)(void);
 
then the first void is treated correctly as a type-face.

Same strange behaviour appears for the initiation section in a constructor.

kalle::kalle()
:dummy(0)     <----- treated as function 
{
}

with space in front

kalle::kalle()
 :dummy(0)     <----- treated as an ordinary identifier.
{
}

/Vineto
Technical Details
Message-ID: <3257eu$i6q@euas20.eua.ericsson.se>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!news.duke.edu!MathWorks.Com!news.cic.net!magnus.acs.ohio-state.edu!cis.ohio-state.edu!eua.ericsson.SE!euavti

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,d46846a6e8128798,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-08-08 20:41:51 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!news.onramp.net!convex!news.duke.edu!MathWorks.Com!news.cic.net!magnus.acs.ohio-state.edu!cis.ohio-state.edu!eua.ericsson.SE!euavti
From: euavti@eua.ericsson.SE (Trifunovski Vineto)
Newsgroups: gnu.emacs.bug
Subject: font-lock-type-face works wrong in font-lock-mode
Date: 8 Aug 1994 19:06:40 -0400
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden
Lines: 31
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <3257eu$i6q@euas20.eua.ericsson.se>
Reply-To: euavti@eua.ericsson.se