Currently comments are not included in tokens, though, they are there as characters in the actual code.
Therefore, when an error occurs, the comment is not reflected and the error position is misaligned.
Reproducible code
#[]# a = 1
Expected behavior
rror[#0404]: File <stdin>, line 1,
1 | a = 1
: --
SyntaxError: invalid indent
Describe the behavior
Currently comments are not included in tokens, though, they are there as characters in the actual code. Therefore, when an error occurs, the comment is not reflected and the error position is misaligned.
Reproducible code
Expected behavior
Current behavior
OS Windows 10