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

Array trailing comma seems "mandatory" #1

Closed
chybz opened this issue Jun 9, 2021 · 1 comment
Closed

Array trailing comma seems "mandatory" #1

chybz opened this issue Jun 9, 2021 · 1 comment

Comments

@chybz
Copy link

chybz commented Jun 9, 2021

Hello there and thanks for this good stuff !

The following snippet fails to parse, with "Expected end of string but got m at line 4 position 0".
If I add a trailing comma after last sub-array, all is fine.

Gura was installed via pip.

Could you please have a look ?

model:
    columns: [
        [ "var1", "str" ],
        [ "var2", "str" ]
    ]
@Genarito
Copy link
Member

Genarito commented Jun 9, 2021

Hi @chybz!

First of all, thank you for using Gura, we hope it is useful for your projects!
Secondly, thanks for reporting this issue, we have fixed it and added the corresponding tests. You won't have this problem with version 1.1.0 .
Finally, note that there is the official repository for the Python library which you can find here if you run into problems with the parser again

Best Regards!

Genarito added a commit to gura-conf/gura-js-parser that referenced this issue Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants