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

[jsonl] Allow slash comments #2025

Merged
merged 3 commits into from
Sep 14, 2023

Conversation

geekscrapy
Copy link
Contributor

  • Exit earlier for blank lines
  • Added '//' to the acceptable comment type for jsonl
  • Added to JSON test file

Although not part of the spec, the loader already uses "#" as a comment. Ironically, vscode does not recognise this as a valid comment delimiter and prefers "//". Therefore I don't think it is a push to include this comment type.

@geekscrapy geekscrapy changed the title Jsonl_slash_comments JSONL slash comments Sep 12, 2023
@geekscrapy geekscrapy changed the title JSONL slash comments [jsonl] Allow slash comments Sep 12, 2023
Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @geekscrapy, thanks for putting this together! If vscode accepts this as a comment, we'll allow it too. BTW for startswith, "prefix can also be a tuple of prefixes to look for", which I'm guessing is faster.

@geekscrapy
Copy link
Contributor Author

Hey @geekscrapy, thanks for putting this together! If vscode accepts this as a comment, we'll allow it too. BTW for startswith, "prefix can also be a tuple of prefixes to look for", which I'm guessing is faster.

TIL added! Thanks

@anjakefala anjakefala merged commit 8351bce into saulpw:develop Sep 14, 2023
11 checks passed
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.

3 participants