all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Rosen Diankov <rdiankov@cs.cmu.edu>
Cc: Olivier Lefevre <lefevrol@yahoo.com>,
	bug-gnu-emacs@gnu.org, 703@emacsbugs.donarmstrong.com,
	help@octave.org
Subject: bug#703: Octave comments in emacs
Date: Thu, 14 Aug 2008 16:31:11 -0400	[thread overview]
Message-ID: <jwvfxp7cpme.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <103101d70808121307p61e728fbtc5aed8b91bf25caf@mail.gmail.com> (Rosen Diankov's message of "Tue, 12 Aug 2008 16:07:42 -0400")

> Is there a way to assign two different syntax rules for the same
> character in emacs? Ie, one where ' is treated as a string quote (and
> suppresses the syntax elements inside the quotes), and one where it is
> treated as a suffix operator.

Yes, there is, using the `syntax-table' property.
A common way to set this property is via the
font-lock-syntactic-keywords variable.

So all it takes is a regexp good enough to distinguish the two cases ;-)


        Stefan







  reply	other threads:[~2008-08-14 20:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-12  2:36 Octave comments in emacs Rosen Diankov
2008-08-12 20:07 ` Rosen Diankov
2008-08-14 20:31   ` Stefan Monnier [this message]
2011-03-10  7:06 ` bug#697: " Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2008-08-13 22:18 bug#703: " Chong Yidong
2008-08-20 16:55 ` Kurt Hornik
2008-08-20 23:21   ` Rosen Diankov
2008-08-20 23:27     ` Rosen Diankov
2008-08-21 15:55 Chong Yidong
2008-08-21 18:26 ` Rosen Diankov

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

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

  git send-email \
    --in-reply-to=jwvfxp7cpme.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=703@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=help@octave.org \
    --cc=lefevrol@yahoo.com \
    --cc=rdiankov@cs.cmu.edu \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.