<br><br><div class="gmail_quote">On Fri, Jul 11, 2008 at 2:23 PM, Brad Miller <<a href="mailto:millbr02@luther.edu">millbr02@luther.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, Jul 11, 2008 at 2:03 PM, Matt Leonberger <<a href="mailto:linuxunil@gmail.com">linuxunil@gmail.com</a>> wrote:<br>
> I have been trying to improve the syntax highlighting for python but have<br>
> hit a road block getting the keyword "self" to highlight in functions<br>
> variable declarations.  Is there a set of keywords that are always matched I<br>
> can put it in since it is a reserved word.<br>
<br>
</div>But self is not a keyword or a reserved word, it is merely a<br>
convention.  You can use any valid python name as the first parameter<br>
in a method definition and it will work just fine as long as you are<br>
consistent within that method.</blockquote><div><br>Sorry I misspoke, but I would like to have "self" use a different color as well as "cls". Since that is a common idiom (at least for me).<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="Ih2E3d"><br>
><br>
> Also, is there a way to search a grammar file in the bundle editor, since<br>
> finding the entries I need has slowed down my progress.<br>
><br>
</div>You can use Edit-in-TextMate from the bundle editor and you have the<br>
full power of TextMate :-)<br>
<br>
Brad<br>
<br>
> _______________________________________________<br>
> textmate mailing list<br>
> <a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
> <a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
><br>
><br>
<br>
_______________________________________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/listinfo/textmate</a><br>
</blockquote></div><br>