04.12.06
The ScopeHandler class
Since the actual page does not accept comments, this entry is for you to post your comments on the ScopeHandler class. Fire away!
Current version: 1.2 Added RDoc support.
Current version: 1.2.1 Added nodesWithScope method. Example: handler.nodesWithScope("comment").
Later
José Manuel said,
April 13, 2006 at 3:33 am
It doesn’t work for me. It says:
parsing this file:
I hope this will be included in TextMate in the next version. This will enable better commands (It exactly what i was looking for)
Haris said,
April 13, 2006 at 6:22 am
Jose, I edited your comment so that the code shows up properly. You need to append each line with code with four spaces for it to show properly.
As to your problem, I think you were caught between revisions. I changed the command slightly, to accept an IO object like STDIN instead of the actual string with the data. So your code should now have this instead:
I.e.
STDIN.readshould be replaced bySTDIN. I should make the method more flexible to allow it to accept both versions. It’s still pretty rough (One of the reasons it’s not in the repository yet. Maybe in the future).Jose Manuel said,
April 13, 2006 at 12:01 pm
Thank you very much for your answer and for fixing my comment. I will try it as soon as i can (I’m not at home right now). This is great stuff, just looking forward to use this!