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
grasp -e returning no results #18
Comments
What you want is:
Explanation: To just match |
Thank you for pointing me in the right direction and clarifying the difference. What made it clearer was doing Also, thanks for creating grasp, great tool. |
I think this would be a good example to make a blog post out of, so other people who how to do this. Would it be OK if I wrote a post about this example? |
Sure, I was actually thinking about doing the same for our blog (DataHero) On Sat, Jan 25, 2014 at 2:36 PM, George Zahariev
Islam Sharabash |
Hi,
I read http://graspjs.com/blog/2014/01/07/refactoring-javascript-with-grasp/ -- so maybe I need to read more documentation but...
My end goal is to turn
last()
calls like this:Into something like this:
I can detect the
last
identifier like so:grasp -e 'last' lib/html5/parser.js
However -- when I try to detect it with parens I get no results:
grasp -e 'last()' lib/html5/parser.js
I also tried adding wildcards -- but just get an error:
Am I misunderstanding how to use grasp? What am I doing wrong? Or is it something to be debugged?
The text was updated successfully, but these errors were encountered: