[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?)
- From: Daurnimator <quae@...>
- Date: Thu, 15 Jun 2017 14:32:44 +1000
On 15 June 2017 at 14:15, Soni L. <fakedme@gmail.com> wrote:
> \tlocal function f(u)
> \t\tlocal v = u:match('^([^/]+)/') ..
> \t\t\t\t\t\t\tu:match('^[^/]+/[^:]+(:.*)$')
> \t\tif v:match("^nope:") then
> \t\t\treturn nil, v:match("^nope:(.*)$")
> \t\tend
> \t\treturn v
> \tend
>
> Have fun getting line 3 to align with line 2 when you're not using tab width
> = 2.
"Tabs for indentation, spaces for alignment"
https://www.emacswiki.org/emacs/SmartTabs
http://vim.wikia.com/wiki/Indent_with_tabs,_align_with_spaces
But also: I don't (nor do I see other people regularly) align lua code.
- References:
- Tab versus space indentation, and source code control systems... (was: Re: Style guide?), sur-behoffski
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), Sergey Rozhenko
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), Enrico Colombini
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), Charles Heywood
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), David Goehrig
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), Soni L.
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), David Goehrig
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), Coda Highland
- Re: Tab versus space indentation, and source code control systems... (was: Re: Style guide?), Soni L.