vaidik / commentjson

Add JavaScript or Python style comments in JSON.
MIT License
104 stars 25 forks source link

Ignore trailing commas (closes #39, closes #43) #46

Closed duelafn closed 4 years ago

duelafn commented 4 years ago

Implements trailing comma ignores, if you are still willing to merge such a change.

Thanks!

duelafn commented 4 years ago

Hm, interesting - works in lark 0.9, I'll try to get it working with older larks as well.

duelafn commented 4 years ago

Ok, updated to work for both lark-parser<0.8 and lark-parser>=0.8.

I did not update setup.py in this patch set, but there doesn't seem to be any reason to limit lark-parser version <0.8. The tests pass for me up to and including 0.9.0.