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

Add CSV lexer #1005

Merged
merged 9 commits into from
Nov 10, 2024
Merged

Add CSV lexer #1005

merged 9 commits into from
Nov 10, 2024

Conversation

walles
Copy link
Contributor

@walles walles commented Sep 29, 2024

This is a lexer for RFC-4180 compliant CSV files.

Fixes #1004.

To be updated once we have a lexer in place.
I believe this test case contains all corner cases from the spec.
Both by fixing the indentation to make the test suite happy and by
adding LiteralStringEscape to the expected output.
@walles
Copy link
Contributor Author

walles commented Nov 10, 2024

@alecthomas what's your opinion here?

I'm aware there are non-RFC compliant CSV files out there, but mis-coloring those I think should be OK since their contents will still be intact.

Or is there some other holdup for CSV coloring?

@alecthomas
Copy link
Owner

Sorry, I missed this. LGTM!

@alecthomas alecthomas merged commit e76e1e2 into alecthomas:master Nov 10, 2024
2 checks passed
@walles walles deleted the johan/csv-lexer branch November 11, 2024 05:39
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.

Please add a CSV lexer
2 participants