🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #997

Re: Problem with lightbrite in Lucid 19.4

#997
From: Espen Skoglund
Date: Tue, 09 Mar 1993 09:14
30 lines
1854 bytes
In article <1993Mar8.170528.18034@cs.hw.ac.uk>, donaldh@cs.hw.ac.uk (Donald I Hunter) writes:
>I'm having a bit of trouble getting comments to highlight in c-mode under
>Lucid Emacs 19.4. Everything else works fine, comments are highlighted 
>in lisp etc. I had a dig around in the lightbrite syntax-decode and c-mode
>lisp code, but I'm not too well versed in lisp and couldn't see a solution.
>
>I tried setting syndecode-comment-start-regexp's value to "/*" and "*/"
>for end-regexp  explicitly in a c-mode-hook. But once in c-mode, the value
>of both these variables is nil.
>
>Beyond that, I don't have any idea about the workings of syntax tables so
>I'm stuck.
>
>Any help would be appreciated, since what I would like highlighted more than
>anything else is comments.
>
>Donald.

What you need is the syntax table in your c-mode to have this:
(modify-syntax-entry ?/ ". 14" c-mode-syntax-table)
(modify-syntax-entry ?* ". 23" c-mode-syntax-table)

--Espen Skoglund
--espensk@stud.cs.uit.no


> Donald I Hunter                         donaldh@uk.ac.hw.cs 
>
> The human race will rescue me in 3 and a half million years
>   In the meantime, don't try and understand what I say
Technical Details
Message-ID: <1993Mar9.091447.27399@news.uit.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!news.uit.no!stud.cs.uit.no!espensk
References: <1993Mar8.170528.18034@cs.hw.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,91c81eb57699fea7
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1993-03-09 01:43:04 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!aun.uninett.no!news.uit.no!stud.cs.uit.no!espensk
From: espensk@stud.cs.uit.no (Espen Skoglund)
Subject: Re: Problem with lightbrite in Lucid 19.4
Keywords: lightbrite Lucid 19.4
References:  <1993Mar8.170528.18034@cs.hw.ac.uk>
Sender: news@news.uit.no (USENET News System)
Organization: University of Tromsoe
Date: Tue, 9 Mar 1993 09:14:47 GMT
Message-ID: <1993Mar9.091447.27399@news.uit.no>
Lines: 30