[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#703: Octave comments in emacs
From: |
Stefan Monnier |
Subject: |
Re: bug#703: Octave comments in emacs |
Date: |
Thu, 14 Aug 2008 16:31:11 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> 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