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

[nimgrep] add option --oneline to keep file:line info when piping through grep #7592

Merged
merged 1 commit into from
Apr 13, 2018

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Apr 13, 2018

partially addresses #7428

eg usage:

./bin/nimgrep '\bfields\b' --ext:nim --recursive --oneline | grep let
/Users/timothee/git_clone/nim/Nim/tests/js/tmangle.nim:69: # Test codegen for fields with uppercase letters:
/Users/timothee/git_clone/nim/Nim/tests/niminaction/Chapter9/configurator/configurator.nim:63:   let identDefs = toIdentDefs(fields)
/Users/timothee/git_clone/nim/Nim/tests/vm/meta.nim:174:   let fields = typedef.fields.render()
/Users/timothee/git_clone/nim/Nim/tests/vm/meta.nim:174:   let fields = typedef.fields.render()
/Users/timothee/git_clone/nim/Nim/lib/core/macros.nim:947:   let enumBody = newNimNode(nnkEnumTy).add(newEmptyNode()).add(fields)
/Users/timothee/git_clone/nim/Nim/compiler/semobjconstr.nim:148:       let fields = branch[branch.len - 1]
/Users/timothee/git_clone/nim/Nim/compiler/semobjconstr.nim:152:       let fields = branchNode[branchNode.len - 1]
/Users/timothee/git_clone/nim/Nim/compiler/semobjconstr.nim:181:         let fields = fieldsPresentInBranch(selectedBranch)
/Users/timothee/git_clone/nim/Nim/compiler/semobjconstr.nim:191:           let fields = fieldsPresentInBranch(i)

@Araq
Copy link
Member

Araq commented Apr 13, 2018

Thank you.

@Araq Araq merged commit 44ee3c2 into nim-lang:devel Apr 13, 2018
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.

2 participants