Properly construct documents for mixed-mode files
Properly construct documents for mixed-mode files

Issue #3

pdanpdan/tern_for_sublime,ternjs/tern_for_sublime,pdanpdan/tern_for_sublime,ternjs/tern_for_sublime