twitter/hogan.js — pull request #72 by plecong (2012-04-17 18:42:45+00:00)
Title: Fix Scanner Indexes of Section With Uneven Reset Delimiters

I ran into this when I was porting Hogan.js and my text editor added an extra brace to one of the unit tests I was copying. Basically, there's a problem if you use reset delimiters and they are of different lengths with sections and lambdas:

`{{=<% %%>=}}Test<%#foo%%>bar<%/foo%%>`

The scanner will calculate the index to get the substring inside the #foo section to be '>ba' (actual) instead of 'bar' (expected). Simple change and I've added a unit test that checks.