Skip to content

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

Closed
Anthuang wants to merge 1 commit into
BurntSushi:masterfrom
Anthuang:separators
Closed

core: Add field-match-separator and field-context-separator#1871
Anthuang wants to merge 1 commit into
BurntSushi:masterfrom
Anthuang:separators

Conversation

@Anthuang

Copy link
Copy Markdown
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
Copy Markdown
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