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

Parse error with comment in object literal #96

Open
coderaiser opened this issue Dec 18, 2023 · 2 comments
Open

Parse error with comment in object literal #96

coderaiser opened this issue Dec 18, 2023 · 2 comments
Labels
bug Something isn't working parser Related to Ezno's syntax parser, AST definitions and output

Comments

@coderaiser
Copy link

Strange error for this code:

image

@kaleidawave kaleidawave added bug Something isn't working parser Related to Ezno's syntax parser, AST definitions and output labels Dec 18, 2023
@kaleidawave
Copy link
Owner

kaleidawave commented Dec 18, 2023

Looks like a parser bug.

Comments are tokenised and then some should be stored in the AST for hover information etc but there are some edge cases ATM.

Will take a look when I have some free time. Or expose the option where the parser skips comments

@kaleidawave kaleidawave changed the title Strange erorr: Expected identifier at property key, found Comment Parse error with comment in object literal Dec 18, 2023
@kaleidawave
Copy link
Owner

Given a few lines below there is a async function, which it currently doesn't work in Ezno. It might be a while before you can check that file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parser Related to Ezno's syntax parser, AST definitions and output
Projects
None yet
Development

No branches or pull requests

2 participants