Skip to content

Conversation

@jmwanderer
Copy link

Many json files have comments prepended using
the characters # or // comment characters. For example, the json files generated by vscode. A least one manifest parsed by platformio-core, library.json in the Unity, has comments. (See ThrowTheSwitch/Unity#722)

This change skips the header comments in json files.

Many json files have comments prepended using
the characters # or // comment characters. For example, the json
files generated by vscode. A least one manifest parsed by
platformio-core, library.json in the Unity, has comments.
(See ThrowTheSwitch/Unity#722)

This change skips the header comments in json files.
@jmwanderer
Copy link
Author

I assume this change should also have a test in tests/package/test_manifiest.py
Perhaps extend test_library_json_parser to include input with comments?

Also, currently this change does not support a file with a comment, white space, and then a comment. Perhaps it will be more robust to add that coverage?

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

Successfully merging this pull request may close these issues.

1 participant