[TxMt] javascript mootools bundle scope corrections
Peter Haza
peter.haza at gmail.com
Wed Nov 14 12:35:40 UTC 2007
It seems like the mootools bundle wrongly scopes variables named the
same as methods in mootools' classes as methods.
Example:
http://pastie.textmate.org/private/nsry0oftvpsfftyul6lslw
(make sure you use a theme like Blackboard which highlights js)
As you can see the map variable is highlighted, and wrongly scoped
like support.class.array.js.mootools.
Unfortunately I'm still very new to TextMate language grammars and
not very confident with mootols, so I'm not sure I'm in a position to
file a patch. The way to fix this thought, I presume would be to look
for a leading '.'(dot) instead of word boundary for all class
methods. Something like:
match = '(?<=\.)(map|forEach|...)\b';
The mootools bundle is Joe Maller, is he still around here available
to fix?
Regards,
Peter Haza
More information about the textmate
mailing list