Hey Hans, thanks for the suggestion

It didn't actually work but I played with your suggestion and it miraculously works if I add (\]?) to the match. Thanks for your help, here is the grammar that I've used incase anybody else wants to use it too.

                var_index = {
                        name = 'variable.other.index.php';
                        match = '(?x)
                                (\[?)(\$+)[a-zA-Z_\x{7f}-\x{ff}]
                                [a-zA-Z0-9_\x{7f}-\x{ff}]*?\b';
captures = { 1 = { name = 'punctuation.definition.variable.php'; }; };
                };

Thanks again for the help
Teifion

––––––––––––––––––
http://woarl.com/blog


_______________________________________________
textmate-dev mailing list
[email protected]
http://lists.macromates.com/mailman/listinfo/textmate-dev

Reply via email to