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

Multiple matches in same line reported as multiple lines #8

Open
osa1 opened this issue Aug 7, 2022 · 0 comments
Open

Multiple matches in same line reported as multiple lines #8

osa1 opened this issue Aug 7, 2022 · 0 comments

Comments

@osa1
Copy link
Owner

osa1 commented Aug 7, 2022

Compare:

$ sg --rust bytes
/home/omer/rust/sg/src/main.rs
266:            let token_str = match node.utf8_text(bytes) {
244:    let bytes = contents.as_bytes();
244:    let bytes = contents.as_bytes();
224:    let tree = match cfg.parser.borrow_mut().parse(contents.as_bytes(), None) {

$ ag --rust bytes
src/main.rs
224:    let tree = match cfg.parser.borrow_mut().parse(contents.as_bytes(), None) {
244:    let bytes = contents.as_bytes();
266:            let token_str = match node.utf8_text(bytes) {

With ag, line 244 is shown once, with all occurrences of bytes highlighted.

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

No branches or pull requests

1 participant