Open klebann opened 3 years ago
Will context lines option be enought here (like -C in grep
) or do you need an enclosing function?
What should happen if imhere()
is located outside of the function?
What if containing function is 1000 lines long? :)
do you need an enclosing function?
yes
What if containing function is 1000 lines long?
nothing , I have plenty of memory 😄
What should happen if imhere() is located outside of the function?
do I have a choice?whatever will happen, I can handle it.
do I have a choice?whatever will happen, I can handle it.
I can't implement a feature if its semantics are not well-defined, this is why I'm asking corner-case questions.
The match can happen at a global scope where we have no function to print. Should these matches be ignored or they should be intermixed with function matches?
Intermixed with function matches
Is that possible to get whole body of function as a string when you find specific function in this function?
Example:
Command: phpgrep find only imhere();
Output: