lua-users home
lua-l archive

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




On 2017-06-15 11:34 AM, Coda Highland wrote:
On Wed, Jun 14, 2017 at 11:15 PM, 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.
\t\tlocal v =
\t\t\tu:match('^([^/]+)/') ..
\t\t\tu:match('^[^/]+/[^:]+(:.*)$')

/s/ Adam


ಠ_ಠ

FINE...

Spaces are superior because you can instantly tell who wrote what, since different ppl use different indentation levels. (/s)

(At the end of the day, it all comes down to personal preference. I have used logarithmic indentation before.)

--
Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.