Skip to content
New issue

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

Loc pragma directly after def makes parser skip token #14585

Open
BlobCodes opened this issue May 10, 2024 · 0 comments
Open

Loc pragma directly after def makes parser skip token #14585

BlobCodes opened this issue May 10, 2024 · 0 comments

Comments

@BlobCodes
Copy link
Contributor

Bug Report

The following code compiles because the token "this_is_ignored" is skipped by the parser:

def#<loc:push>this_is_ignored test(a)
end

test(1)

$ crystal -v
Crystal 1.12.1 [4cea10199] (2024-04-11)

LLVM: 15.0.7
Default target: x86_64-unknown-linux-gnu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants