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

core: Add field-match-separator and field-context-separator #1871

Closed
wants to merge 1 commit into from

Conversation

Anthuang
Copy link
Contributor

This allows for the customization of the match and context separators. The match separator defaults to :, while the context separator defaults to -. Both are limited to a single byte.

Closes #1842

@BurntSushi BurntSushi added the rollup A PR that has been merged with many others in a rollup. label May 31, 2021
@BurntSushi
Copy link
Owner

Thanks! I'm bringing this in via my rollup branch. I added tests and also removed the one byte restriction. The printer itself supports any number of bytes (including zero), so we might as well allow that.

BurntSushi pushed a commit that referenced this pull request May 31, 2021
These flags permit configuring the bytes used to delimit fields in match
or context lines, where "fields" are things like the file path, line
number, column number and the match/context itself.

Fixes #1842, Closes #1871
BurntSushi pushed a commit that referenced this pull request Jun 1, 2021
These flags permit configuring the bytes used to delimit fields in match
or context lines, where "fields" are things like the file path, line
number, column number and the match/context itself.

Fixes #1842, Closes #1871
@BurntSushi BurntSushi closed this in 578e199 Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rollup A PR that has been merged with many others in a rollup.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to customize the separator character betwen paths, lines, columns and matches
2 participants