Describe the bug
Pyright does not emit a syntax error when there's a trailing backslash at the end of a file.
Code or Screenshots
The same file causes a syntax error when run:
$ python y.py
File "y.py", line 1
\
SyntaxError: unexpected EOF while parsing
VS Code extension or command-line
Command-line version 1.1.403