[TxMt] perl "=>" operator
Allan Odgaard
throw-away-1 at macromates.com
Thu Nov 23 20:48:54 UTC 2006
On 23. Nov 2006, at 21:26, Grant Hollingworth wrote:
> [...]
> {
> format => 'html',
> server => 'localhost',
> }
>
> Currently, 'format' has a scope of support.function.perl, while
> 'server' is source.perl.
>
> \b\w+\s*=> would match, but would should the scope be?
> string.quoted.other?
In property lists we scope it constant.other.key[.plist] -- here
format is to be considered a key in the key/value data structure.
> And how to give it higher precedence than support.function.perl?
Place the rule which matches \b\w+\s*=> above the one which matches
the support function name.
More information about the textmate
mailing list