[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: python like syntax for lua
- From: "marcus.cf" <marcus.cf@...>
- Date: Sat, 14 Jun 2003 16:27:22 -0300
Just for fun, i'm ending a indent/lua.vim to indent like
> --Alternative 3:
> if a == 0 then
> print "a is zero"
> sign = 0
> elseif a < 0 then
> print "a is negative"
> sign = -1
> print "a is positive"
> sign = 1
> --Other alternatives ?
> I'm trying to work my way through vim's indenting rules
, and I was
> wondering what people thought. I used to use alternativ
e 2 because it is
> clearer where the end and the if match. But it uses mor
e horizontal space,
> but it seems wierd when there are no elseif/else clause
> if a > b then
> a, b = b, a
> while a < b do
> a = (a + b) / 2
> I'm kind of drawn to alternative 3, but it means gettin
g vim to
> co-operate. (I don't mean to start a flame-
war about text editors, either.
> I happen to like vim, but it's a very personal thing.)
Seleção de Softwares UOL.
10 softwares escolhidos pelo UOL para você e sua família.
Description: Binary data