[SVN] Re: Language Grammar

Teifion Jordan sarkalian at gmail.com
Thu Apr 24 22:24:21 UTC 2008


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




More information about the textmate-dev mailing list