[TxMt] Re: Advice on a Langauge Grammar?

Jacob Rus jacobolus at gmail.com
Tue Sep 2 12:31:53 UTC 2008


Charles Turner wrote:
> So it would be nice to capture this in the scope, and assign these 
> compile-only words to an "invalid" scope when they are used outside a 
> function definition. The question is, how to (best) do this?

Hi Charles.  2 bits of advice.

1. The best way to do this is probably to set up begin/end rules which 
define the extent of a function definition.

2. If you're having trouble with something specific in making a grammar 
(or command, etc.), and reading the manual isn't helping, paste what 
you've got so far to a pastebin (easiest way is ⌃⇧⌥V), and then come 
into the IRC channel: <irc://irc.freenode.net/##textmate> and someone 
can help you sort things out in real time. :-)

-Jacob




More information about the textmate mailing list