help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble fontifying /** ... */


From: Davin Pearson
Subject: Re: Trouble fontifying /** ... */
Date: Tue, 27 Jan 2009 15:04:58 +1300

2009/1/27 Alan Mackenzie <address@hidden>:
> "/*****..... " (minimum 2 stars) might look a bit like:
> "/\\*\\*+"
>

The following Elisp code only matches a single line comment

     ("/\\*\\*+.*\\*/" 0 'font-lock-doc-face t)

and erroneously fontifies

       a = "/** foo */";

in font-lock-doc-face when it should be font-lock-string-face.

-------------------------------------------------------------------

Click below for my Elisp code: (please note that I have updated the code)

http://h1.ripway.com/davin/sjs.el

Click below for a program fragment:

http://h1.ripway.com/davin/a.sjs


-- 
Sincerely and kindest regards, Davin.
Davin Pearson    http://www.davinpearson.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]