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

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

Re: Strings as opening/closing delimiters in the syntax table?


From: Ilya Zakharevich
Subject: Re: Strings as opening/closing delimiters in the syntax table?
Date: Wed, 08 Dec 2010 15:33:37 -0000
User-agent: slrn/0.9.8.1pl1 (Linux)

On 2010-10-27, Philip <phil.ganchev@gmail.com> wrote:
> I want to make emacs match "if" to "then" in sh mode like it does "("
> and ")" in other modes. I read the wiki page about syntax tables
> (http://www.emacswiki.org/emacs/EmacsSyntaxTable ) but it only talks
> about opening and closing delimiter *characters*. Have I
> misunderstood, or have I found something that emacs cannot do? [ghasp!]

You should mark "i" in "if" and the final "e" in "else" by
corresponding matching `syntax-type' text-property.

Hope this helps,
Ilya


reply via email to

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