In the example from the title, notice that the brackets aren't balanced; we're missing an additional closing '}'. However, rather than causing a syntax error, it interprets the syntax as being a valid "triple-stash", causing a possibly unintended xss vulnerability should someone accidentally fat-finger an extra curly bracket at the beginning.