We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def main(): #comment #comment pass
Ideally, the tokenizer should return newline tokens after both the TK_EOLCOMMENT and TK_COMMENT but is not returned in either of the two cases.
TK_EOLCOMMENT
TK_COMMENT
❯ lpy --show-tokens examples/expr2.py (KEYWORD "def") 0:2 (TOKEN "identifier" main) 4:7 (TOKEN "(") 8:8 (TOKEN ")") 9:9 (TOKEN ":") 10:10 (TOKEN "eolcomment") 12:20 (TOKEN "comment") 25:33 (TOKEN "indent") 34:37 (KEYWORD "pass") 38:41 (EOF) 42:42
The text was updated successfully, but these errors were encountered:
Return newline after comments. (lcompilers#617)
76f7ec6
Successfully merging a pull request may close this issue.
Ideally, the tokenizer should return newline tokens after both the
TK_EOLCOMMENT
andTK_COMMENT
but is not returned in either of the two cases.The text was updated successfully, but these errors were encountered: