[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A practical code analysis question
- From: Alexander Gladysh <agladysh@...>
- Date: Sat, 18 Feb 2012 04:35:06 +0400
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.