Hi, Allan. Thanks for jumping in to help me.
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.
Here's a line of code in the example that I simply do not understand, at all:
7 match = '\b(if|while|for|return)\b';
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.
Thanks, again, for your help.
--
Graden Hudson
Graphic Designer
Wellness Council of America
9802 Nicholas Street, Ste. 315 | Omaha, NE 68114
Phone: 402.827.3590 | Fax: 402.827.3594
ghudson@welcoa.org | www.welcoa.org
From: Allan Odgaard <mailinglist@textmate.org>
Reply-To: TextMate users <textmate@lists.macromates.com>
Date: Fri, 6 Nov 2009 04:47:47 +0100
To: TextMate users <textmate@lists.macromates.com>
Subject: [TxMt] Re: How To Highlight Custom Syntax
On 5 Nov 2009, at 00:06, Graden Hudson wrote:
> I would like to know how to extend the syntax styling to highlight a
> proprietary syntax in my code [...]
> Here is what I was reading:
> http://manual.macromates.com/en/language_grammars
That is indeed the canonical guide explaining how grammars work.
So how much were you able to follow? Do you know regular expressions?
Did you find the existing HTML grammar and look at that?
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate