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

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

Re: Highlight comment in gauss mode


From: Stefan Monnier
Subject: Re: Highlight comment in gauss mode
Date: Tue, 06 Jan 2004 18:39:12 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> @ This is one line comment @

Is

  @ this is
    a two line comment @

valid?  Or is

  @ this is a one line comment

valid?  How about

  @ comment @ not comment

?

> /* 
> This is multiple-lines comments
> */

> My current syntax  table is as the follows but it did not work.

You don't give us enough info to know what you did and what failed to happen.

>   (modify-syntax-entry ?@ "\"" gauss-mode-syntax-table)

This is wrong because it says @ is used for strings rather than
for comments.  You probably want to use "!" instead of "\"" although
it depends on the answers to the above questions.

>   (modify-syntax-entry ?/ ". 14b" gauss-mode-syntax-table)
>   (modify-syntax-entry ?* ". 23b" gauss-mode-syntax-table)

That looks right.


        Stefan


reply via email to

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