unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* font-lock doesn't mark block comments as "multiline"
@ 2007-05-02 12:18 Chris Page
  2007-05-02 13:06 ` David Hansen
  2007-05-04 11:05 ` Chris Page
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Page @ 2007-05-02 12:18 UTC (permalink / raw)
  To: help-gnu-emacs

I'm the maintainer of Dylan mode for emacs (see my .sig). Like C++, 
Dylan has both "end of line" comments beginning with "//" and block 
comments surrounded by "/* ... */".

Although font-lock automatically applies the comment face to block 
comments when they're defined in the character syntax table, when I edit 
text within a block comment, it loses the comment face and is fontified 
as though it were not within a comment.

There are several ways I can imagine fixing this, but I'm wondering why 
font-lock doesn't automatically apply the font-lock-multiline property 
to block comments when it's applying the face to them.

Is there some other, recommended solution?

-- 
Chris Page - Dylan Programmer

 Open Source Dylan: <http://www.opendylan.org/>
    Dylan Blogging: <http://homepage.mac.com/chrispage/iblog/>
       Dylan Stuff: <http://cafepress.com/chrispage>

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: font-lock doesn't mark block comments as "multiline"
@ 2007-05-03  6:58 martin rudalics
  0 siblings, 0 replies; 4+ messages in thread
From: martin rudalics @ 2007-05-03  6:58 UTC (permalink / raw)
  To: help-gnu-emacs

> There are several ways I can imagine fixing this, but I'm wondering why
> font-lock doesn't automatically apply the font-lock-multiline property
> to block comments when it's applying the face to them.

Comments are handled by syntactic fontification.  "font-lock-multiline
properties" are applied by keywords fontification only.

Please give a precise example where your code fails.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-04 11:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-02 12:18 font-lock doesn't mark block comments as "multiline" Chris Page
2007-05-02 13:06 ` David Hansen
2007-05-04 11:05 ` Chris Page
  -- strict thread matches above, loose matches on Subject: below --
2007-05-03  6:58 martin rudalics

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).