[TxMt] perl "=>" operator
Grant Hollingworth
grant at antiflux.org
Thu Nov 23 20:26:44 UTC 2006
perlop(3):
The "=>" operator is a synonym for the comma, but forces any word (con-
sisting entirely of word characters) to its left to be interpreted as a
string (as of 5.001). This includes words that might otherwise be con-
sidered a constant or function call.
For example:
{
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? And how to give it higher precedence than support.function.perl?
More information about the textmate
mailing list