- Subject: Re: Folding & Perl Mode
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Thu, 21 Jun 2007 12:28:02 -0400
=?UTF-8?Q?J=C3=B6rg?= Sommer <joerg@xxxxxxxxxxxx> wrote:
>Isn't it a common problem that text in comments confuses
>find_matching_delimiter()? Due to this I've implemented my own brace
find_matching_delimiter is aware of comments. That is why the first
patch to perl.sl worked. Basically, it changed "#{{{" to "# {{{",
effectively turning "# {{{" into a comment.
>matching function. Is it possible to exclude braces from the matching
>with find_matching_delimiter()? Are more complex contructs like {\{ ] }
>possible?
Yes, but matching works according to the syntax table associated with
the buffer. If you have used define_syntax to declare {} as matching
delimiters, then find_matching_delimiter will take their presence into
account.
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2007 date index]
[2007 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]