[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A practical code analysis question
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 14 Feb 2012 10:39:03 -0200
> 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.