Thread View: gnu.epoch.misc
2 messages
2 total messages
Started by Donald I Hunter
Mon, 08 Mar 1993 17:05
Problem with lightbrite in Lucid 19.4
Author: Donald I Hunter
Date: Mon, 08 Mar 1993 17:05
Date: Mon, 08 Mar 1993 17:05
23 lines
1511 bytes
1511 bytes
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. -- 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
Re: Problem with lightbrite in Lucid 19.4
Author: Espen Skoglund
Date: Tue, 09 Mar 1993 09:14
Date: Tue, 09 Mar 1993 09:14
30 lines
1854 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads