Better scanner

if tag is unescaped with a starting "{", then consume the closing "}"