lua-users home
lua-l archive

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


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