[TxMt] Pattern name available as a shell variable? (re: PHP code-completion)

Allan Odgaard allan at macromates.com
Thu Jan 13 02:40:14 UTC 2005


On Jan 12, 2005, at 15:00, Ian wrote:

> * could we have a variable $TM_PATTERN_NAME which gives the current
> pattern name?
> * would there be a way to access patterns names 'higher up'? (like
> 'Embedded PHP')?

I can give you the full path separated by dots. E.g.: “HTML.Embedded 
PHP.PHP.String” or whatever it ends up being.

But I'll probably wait introducing this till I rework the syntax system 
(which shouldn't be too long).



More information about the textmate mailing list