<HTML>
<HEAD>
<TITLE>Re: [TxMt] Re: How To Highlight Custom Syntax</TITLE>
</HEAD>
<BODY>
<FONT FACE="Lucida Grande"><SPAN STYLE='font-size:10pt'>Hi, Allan. Thanks for jumping in to help me.<BR>
<BR>
I was able to sort of understand some things like I am obviously going to have to declare a pattern (begins with "%link=" ends with "%"), but  when I read about rule keys like "name" and "match", I am lost. I am primarily an HTML/CSS guy, and I do not delve much into other languages just yet.<BR>
<BR>
Here's a line of code in the example that I simply do not understand, at all:<BR>
 7           match = '\b(if|while|for|return)\b';<BR>
<BR>
I did look at the existing HTML grammar, but that did not make much sense to me, either. Should I start somewhere else in the manual? I think I'm missing some basic concepts here.<BR>
<BR>
Thanks, again, for your help.<BR>
</SPAN></FONT><FONT COLOR="#7D7D7D"><FONT SIZE="2"><FONT FACE="Helvetica, Verdana, Arial"><SPAN STYLE='font-size:8pt'>-- <BR>
</SPAN></FONT></FONT></FONT><FONT FACE="Helvetica, Verdana, Arial"><FONT COLOR="#808080"><FONT SIZE="4"><SPAN STYLE='font-size:11pt'><B>Graden Hudson<BR>
</B></SPAN></FONT><FONT SIZE="2"><SPAN STYLE='font-size:9pt'>Graphic Designer<BR>
<B>Wellness Council of America<BR>
</B>9802 Nicholas Street, Ste. 315 | Omaha, NE  68114<BR>
Phone: 402.827.3590 | Fax: 402.827.3594<BR>
<a href="ghudson@welcoa.org">ghudson@welcoa.org</a>  | www.welcoa.org<BR>
</SPAN></FONT></FONT></FONT><FONT FACE="Lucida Grande"><SPAN STYLE='font-size:10pt'><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"><B>From: </B>Allan Odgaard <<a href="mailinglist@textmate.org">mailinglist@textmate.org</a>><BR>
<B>Reply-To: </B>TextMate users <<a href="textmate@lists.macromates.com">textmate@lists.macromates.com</a>><BR>
<B>Date: </B>Fri, 6 Nov 2009 04:47:47 +0100<BR>
<B>To: </B>TextMate users <<a href="textmate@lists.macromates.com">textmate@lists.macromates.com</a>><BR>
<B>Subject: </B>[TxMt] Re: How To Highlight Custom Syntax<BR>
<BR>
On 5 Nov 2009, at 00:06, Graden Hudson wrote:<BR>
<BR>
> I would like to know how to extend the syntax styling to highlight a<BR>
> proprietary syntax in my code [...]<BR>
> Here is what I was reading:<BR>
> <a href="http://manual.macromates.com/en/language_grammars">http://manual.macromates.com/en/language_grammars</a><BR>
<BR>
That is indeed the canonical guide explaining how grammars work.<BR>
<BR>
So how much were you able to follow? Do you know regular expressions?  <BR>
Did you find the existing HTML grammar and look at that?<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
textmate mailing list<BR>
<a href="textmate@lists.macromates.com">textmate@lists.macromates.com</a><BR>
<a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a><BR>
</SPAN></FONT>
</BODY>
</HTML>