[TxMt] Re: capturing all text in a scope
pierodancona at gmail.com
Sun Oct 26 09:05:14 UTC 2008
Allan Odgaard <mailinglist at ...> writes:
> If you can’t make it work, post the involved grammar rules, document
After I read your message I tried to isolate an example
but everything works as intended now... I hate computers.
Problem vanished, not sure how that happened.
But I have an additional question. My trivial
routine to get the text is
TextMate.exit_discard unless ENV["TM_SCOPE"].split(" ")\
the_text = STDIN.read
(no comments on my coding style please. I know).
What if two nested scopes are applicable in the
same caret position and I need to capture all
the text belonging to the larger scope?
I guess I'm out of luck then, since STDIN.read
has no way to get the larger area.
More information about the textmate