unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Highlight comment in gauss mode
Date: Tue, 06 Jan 2004 18:39:12 GMT	[thread overview]
Message-ID: <jwvad517wo7.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca> (raw)
In-Reply-To: 65ef16d2.0401060700.3a9f8a6a@posting.google.com

> @ 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

  parent reply	other threads:[~2004-01-06 18:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-06 15:00 Highlight comment in gauss mode jyangstat
2004-01-06 15:51 ` Highlight comment in HTML Gian Uberto Lauri
     [not found] ` <mailman.29.1073407916.928.help-gnu-emacs@gnu.org>
2004-01-06 18:36   ` Tim McNamara
2004-01-06 18:57     ` Tim McNamara
2004-01-06 19:13   ` Stefan Monnier
2004-01-06 18:39 ` Stefan Monnier [this message]
2004-01-07  0:20   ` Highlight comment in gauss mode jyangstat
2004-01-07  1:04     ` Stefan Monnier
2004-01-07 13:33       ` jyangstat
2004-01-07 15:30         ` Stefan Monnier
2004-01-08 21:30           ` jyangstat
2004-01-08 22:41             ` Stefan Monnier
2004-01-09 12:46               ` jyangstat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvad517wo7.fsf-monnier+gnu.emacs.help@asado.iro.umontreal.ca \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).