[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-indent] brace-line-up feature mod for indent
From: |
david ingamells |
Subject: |
Re: [Bug-indent] brace-line-up feature mod for indent |
Date: |
Wed, 24 Jul 2002 19:50:31 +0200 |
Daniel,
Thank you for you efforts. However this feature is already present in indent,
as you would have seen if you had studied the documentation. Here is the
appropriate text:
==============================
if (x > 0)
{
x--;
}
If you use the `-bl' option, you may also want to specify the `-bli' option.
This option specifies the number of spaces by which braces are indented.
`-bli2', the default, gives the result shown above.
===========================
I will therefore not need your patch.
David.
On Saturday 20 July 2002 1:40 am, Daniel Gryniewicz wrote:
> Hi.
>
> I tried to make a indent script for my coding style, and was surprised
> to find out that it has no way of making braces line up with the code
> they're surrounding. I've added a new option, which does this:
>
> if (blah)
> {
> do_something();
> }
>
> The options is name -blu (-brace-line-up) and it implies -bl. What it
> does is not indent code after indenting the brace. It defaults to off.
> Feel free to use the code or not, or use the idea or not, it's up to
> you. However, as Vim will format code in this manner, and it's a
> not-uncommon coding style, I think it would be nice to include the
> capability in indent. If necessary, I will assign copyright to GNU.
>
> Daniel
--
David Ingamells
address@hidden
+31 (013) 5093388 (home)
+31 615010947 (mobile)
- [Bug-indent] brace-line-up feature mod for indent, Daniel Gryniewicz, 2002/07/19
- Re: [Bug-indent] brace-line-up feature mod for indent,
david ingamells <=
- Re: [Bug-indent] brace-line-up feature mod for indent, Daniel Gryniewicz, 2002/07/24
- Re: [Bug-indent] brace-line-up feature mod for indent, Kim Saunders, 2002/07/24
- Re: [Bug-indent] brace-line-up feature mod for indent, Daniel Gryniewicz, 2002/07/24
- Re: [Bug-indent] brace-line-up feature mod for indent, Kim Saunders, 2002/07/24
- Re: [Bug-indent] brace-line-up feature mod for indent, Daniel Gryniewicz, 2002/07/25
- Re: [Bug-indent] brace-line-up feature mod for indent, Kim Saunders, 2002/07/25
- Re: [Bug-indent] brace-line-up feature mod for indent, Daniel Gryniewicz, 2002/07/25
- Re: [Bug-indent] brace-line-up feature mod for indent, david ingamells, 2002/07/30