Embedded document

fix embedded documents with tab, and raise `SyntaxError` if unterminated.

I have no idea how to test if `SyntaxError` raises.