<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Hi dZ,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">Thanks for your help.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">At first this didn't work in my bundle even though it should, so I created a new generic bundle besides the generic keyword and string, I pasted the code you wrote and it works </div><div><font class="Apple-style-span" size="3">ONLY if the %array[] starts at the </font>beginning<font class="Apple-style-span" size="3"> of
 the text. If I need to declare it (in my syntax: declare %array[16] or if it's inside a function as an argument or parameter) then it does not work...</font></div><div><font class="Apple-style-span" size="3"><br></font></div><div><font class="Apple-style-span" size="3">Even then that (starting the %arr[] in the start of a line) does not work in my bundle either obviously it has other code that might be conflicting...</font></div><div><font class="Apple-style-span" size="3"><br></font></div><div><font class="Apple-style-span" size="3">Unfortunately I do not know enough to fix it myself so any input or help is greatly appreciated.</font></div><div><font class="Apple-style-span" size="3"><br></font></div><div><font class="Apple-style-span" size="3">This question expands to the rest of the syntax of my language:</font></div><div><font class="Apple-style-span" size="3">$variable</font></div><div>@strings_variable</div><div>!string_array
 etc...</div><div><br></div><div>but once I figure out how to color the signifiers different for one then the rest should be easy.</div><div><br></div><div>Thanks,</div><div>John </div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">-------------------------------------------------</div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; ">Hello John,<br><br>You can match multiple tokens on the same line and assign them to different coloured groups like this:<br><br>        {    name = 'meta.entity.ksp';<br>            match = '^(\%)([a-zA-Z0-9_]\w*)';<br>       
     captures = {<br>                1 = { name = 'punctuation.ksp'; };<br>                2 = { name = 'entity.ksp'; };<br>            };<br>        },<br><br><br>Notice that both tokens to be identified have parentheses around them in order to be captured.  The "captures" list follows standard regexp convention, that is, 0 is the matched string, 1 is the first matched group in parentheses, 2 is the second matched group, and so on.<br><br>Not specifying the "captures" list (like in your example) is the same as using capture "0," which is the entire matched string.<br><br>In my example, I assigned a different syntax scope identifiers to each token, allowing me to colour them individually.<br><br>By the way, the character class "[a-zA-Z0-9_]"
 is exactly what "\w" represents, so you could shorten your pattern to,<br><br>    match = '^(\%)(\w+)';<br><br>which matches at least one, possibly more, contiguous word characters.<br><br>I hope this helps.<br><br>    dZ.<br><br><br>On Oct 11, 2011, at 13:27, John Relosa wrote:<br><br>> Hello,<br>> <br>> I have a question about syntax coloring. I am using the below code to signify that this is let's say an entity scope<br>> <br>> {name = 'entity.ksp';<br>> match = '(\%)[a-zA-Z0-9_]\w*';<br>> },<br>> <br>> % is actually the signifier for a variable array so when I go to the preferences and change the scope to entity then those words that start with %array get a certain color.<br>> <br>> The problem is that the whole word including the "%" symbol gets colored.<br>> <br>> So here is my question to the textmate gurus.<br>> <br>> Is there a way to have the "%" symbol a different
 color and the word array a different color?<br>> <br>> What would be the code to accomplish that. Any pointers or ideas would be appreciated.<br>> <br>> Thank you.<br>> <br>> John<br>> _______________________________________________<br>> textmate mailing list<br>> <a ymailto="mailto:textmate@lists.macromates.com" 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><br>Message: 7<br>Date: Fri, 14 Oct 2011 05:06:44 -0400<br>From: DZ-Jay <<a ymailto="mailto:dz@caribe.net" href="mailto:dz@caribe.net">dz@caribe.net</a>><br>To: TextMate users <<a ymailto="mailto:textmate@lists.macromates.com" href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>><br>Subject: [TxMt] Re: problem with Lion's new
 hidden scroll bars<br>Message-ID: <<a ymailto="mailto:7B5F91DF-B98E-429D-A2F1-A839B2E188AF@caribe.net" href="mailto:7B5F91DF-B98E-429D-A2F1-A839B2E188AF@caribe.net">7B5F91DF-B98E-429D-A2F1-A839B2E188AF@caribe.net</a>><br>Content-Type: text/plain; charset=us-ascii<br><br>Hello,<br>    I see in that FAQ that the scroll-bars visibility issue is indeed a "frequently asked question," but it doesn't appear to be even a "singularly answered question."<br><br>    Is there a work-around?<br><br>    By the way, thanks for the link.  TextMate not re-opening its windows on restarting was driving me crazy!<br><br>    dZ.<br><br>On Jul 21, 2011, at 08:25, Luc Heinrich wrote:<br><br>> On 21 juil. 2011, at 14:05, Max Lein wrote:<br>> <br>>> I've upgraded to Lion yesterday and I've configured TextMate to use a dark background. Lion's new hidden scroll bars are now unusable, I cannot see
 them when scrolling. <br>> <br>> http://wiki.macromates.com/Troubleshooting/Lion<br>> <br>> -- <br>> Luc Heinrich - <a ymailto="mailto:luc@honk-honk.com" href="mailto:luc@honk-honk.com">luc@honk-honk.com</a><br>> <br>> <br>> _______________________________________________<br>> textmate mailing list<br>> <a ymailto="mailto:textmate@lists.macromates.com" 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><br>_______________________________________________<br>textmate mailing list<br><a ymailto="mailto:textmate@lists.macromates.com" 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>End of textmate Digest, Vol 41, Issue 11<br>****************************************<br><br><br></div></div></div></body></html>