bug#703: Octave comments in emacs

Stefan Monnier monnier at iro.umontreal.ca
Thu Aug 14 15:31:11 CDT 2008


> 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


More information about the Help-octave mailing list