lua-users home
lua-l archive

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


On Tue, Feb 14, 2012 at 16:39, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> In particular we want to find the string concatenations in loops:
>
> Try this simple-minded pattern:
>        string.gsub(T,"local%s+(%S+)%s*=.- do.-(%1%s*=.-\n).-end",print)
> where T contains your code.

Good idea, thank you!

Alexander.