nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] Bracket issue


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] Bracket issue
Date: Mon, 19 Sep 2005 22:17:08 -0400
User-agent: Mozilla Thunderbird 1.0.6 (X11/20050716)

Nick Warne wrote:

>Hi All,
>
>I don't know how to fix this issue.  Attached is a piece of code,
>adapted/abridged by me to show the issue - attempting to find the
>matching bracket on the second line, nano reports 'no matching
>bracket'.  It obviously gets confused with the two { on lines 7 and 8.

Unfortunately, it's not trivial to fix.  The bracket searching function
doesn't distinguish between brackets inside and outside strings, mainly
because strings can be defined differently depending on what kind of
file is being edited.  The feature request mentioned at

http://lists.gnu.org/archive/html/nano-devel/2004-02/msg00002.html

might be able to handle this, but it would take a lot of effort to
implement it.

>nano vers. 1.3.7
>
>Would good/normal coding practice expect the {} to have whitespace
>either side in functions etc.?

If you mean whether indenting {}'s on both sides is a good idea, I've
only seen the former, and I believe that the former is good coding
practice.





reply via email to

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