[TxMt] Re: Python Bundle Syntax Highlighting

Brad Miller millbr02 at luther.edu
Fri Jul 11 19:23:14 UTC 2008


On Fri, Jul 11, 2008 at 2:03 PM, Matt Leonberger <linuxunil at gmail.com> wrote:
> I have been trying to improve the syntax highlighting for python but have
> hit a road block getting the keyword "self" to highlight in functions
> variable declarations.  Is there a set of keywords that are always matched I
> can put it in since it is a reserved word.

But self is not a keyword or a reserved word, it is merely a
convention.  You can use any valid python name as the first parameter
in a method definition and it will work just fine as long as you are
consistent within that method.

>
> Also, is there a way to search a grammar file in the bundle editor, since
> finding the entries I need has slowed down my progress.
>
You can use Edit-in-TextMate from the bundle editor and you have the
full power of TextMate :-)

Brad

> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>



More information about the textmate mailing list