On 24.04.2008, at 18:46, Teifion Jordan wrote:
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'; }; };
};
Try (?<=\[) and (?=\]) look behind resp. ahead
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'; }; };
};
--Hans
_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmate-dev