lua-users home
lua-l archive

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


It was thus said that the Great Daurnimator once stated:
> 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.

  <raises hand> I do.

  https://github.com/spc476/lua-conmanorg/blob/master/lua/string.lua

  -spc (The only rational is that it looks nicer to me)