Skip to content

Support comments in xsv parser #3681

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

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Support comments in xsv parser #3681

merged 1 commit into from
Nov 29, 2023

Conversation

eliaskosunen
Copy link
Contributor

@eliaskosunen eliaskosunen commented Nov 28, 2023

Closes https://github.com/tenzir/issues/issues/1021

Add a new flag to xsv (incl. csv, tsv and ssv): --allow-comments. When enabled, lines starting with the '#' character are skipped. Comments at any other point in a line but the beginning, and comments marked with characters other than '#' are not supported.

To prevent a regression, this behavior is opt-in.

@eliaskosunen eliaskosunen added format Parser and printer improvement An incremental enhancement of an existing feature labels Nov 28, 2023
@eliaskosunen eliaskosunen marked this pull request as ready for review November 28, 2023 08:56
Copy link
Member

@dominiklohmann dominiklohmann left a comment

Choose a reason for hiding this comment

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

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
format Parser and printer improvement An incremental enhancement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants