[TxMt] Defining grammars to select entire functions?

Allan Odgaard throw-away-1 at macromates.com
Tue Aug 14 13:33:37 UTC 2007


On Aug 13, 2007, at 12:33 AM, Michael Manti wrote:

> I'm developing a bundle for Stata/Mata, and I want to define a  
> grammar such that Ctrl-Alt-B can select an entire function. [...]  
> in most regards, this works fine. [...] However, if I hit Ctrl-Alt- 
> B either at the beginning of the first line or within "real", it  
> fails to recognize the meta.function.mata scope [...]

The select scope function is not always doing what’s desired, so it  
sounds like your grammar is fine, the select scope function just  
needs to be improved.






More information about the textmate mailing list