[TxMt] Re: Access to scope information within a script

Matt Neuburg matt at tidbits.com
Wed Nov 5 15:45:50 UTC 2014


See also, for some hints, the section Developing Your Grammar at the end of this page:

http://www.apeth.com/nonblog/stories/textmatebundle.html

m.

On Nov 5, 2014, at 3:53 AM, Richard Drake <rdrake98 at gmail.com> wrote:

> Sometimes asking the question is all that's needed. TM environment variables. I've discovered $TM_SCOPE="text.html.basic meta.tag.block.any.html meta.attribute-with-value.id.html string.quoted.double.html ..." Thanks all!
> 
> 
> 07952130635
> skype: rdrake98
> blog - twitter
> 
> On 5 November 2014 11:21, Richard Drake <rdrake98 at gmail.com> wrote:
> I've been experimenting with some ideas for enhancing editing of code, particularly Ruby and JavaScript, but this query is more general. I'm writing scripts in Ruby and quite happy with ruby18 if it has to be that. Can I get scope information from within a script? I realise that a scope or list of scopes can act as a kind of guard for whether a script is activated. But once a script is running can it take a look at the results of the various scope definitions applied to the current code file?
> 
> 
> 07952130635
> skype: rdrake98
> blog - twitter
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html




More information about the textmate mailing list