[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-indent] brace-line-up feature mod for indent
From: |
Daniel Gryniewicz |
Subject: |
[Bug-indent] brace-line-up feature mod for indent |
Date: |
19 Jul 2002 19:40:04 -0400 |
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
--
Recursion n.:
See Recursion.
-- Random Shack Data Processing Dictionary
indent-blu.patch
Description: Text Data
- [Bug-indent] brace-line-up feature mod for indent,
Daniel Gryniewicz <=
- Re: [Bug-indent] brace-line-up feature mod for indent, david ingamells, 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/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