support @index in each block
Merge pull request #142 from patrickjholloway/master

support @index in each block