[TxMt] Re: capturing all text in a scope

Piero D'Ancona 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  
> etc.

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

def get_test_in_scope(the_scope)
  TextMate.exit_discard unless ENV["TM_SCOPE"].split(" ")\
  the_text = STDIN.read
  return the_text

(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 mailing list