Thanks! Great!
Some suggestions:
switch, case, otherwise should probably be in keyword.control.matlab
varargin, varargout, nargin, nargout should probably be in
support.variable.matlab
allchild, ancestor, areaseries, axes, axis, barseries, box, cla, clc,
clf, close, closereq, contourgroup, copyobj, delete, drawnow,
errorbarseries, figflag, figflag, figure, findall, findfigs, findobj,
gca, gca, gcbf, gcbo, gcf, gco, get, get, grid, hggroup, hgload,
hgsave, hgtransform, image, ishandle, ishold, light, line,
lineseries, linkaxes, linkprop, makehgtform, newplot, opengl, patch,
quivergroup, rectangle, refresh, rootobject, saveas, scattergroup,
set, set, stairseries, stemseries, surface, surfaceplot, text,
uicontextmenu should probably be in keyword.handlegraphics.matlab
There should only be one definition of keyword.other.matlab?
/Peder Axensten
On 12 sep 2006, at 23.15, Allan Odgaard wrote:
On 10/9/2006, at 22:23, Peder Axensten wrote:
I'd like to get in touch with the Matlab bundle author. I got a
few suggestions/bug fixes.
It doesn’t have any maintainer -- I have just accepted
contributions from users of Matlab.
I'd like to change
foldingStartMarker = '^\s*(function|if|switch|while|for|try)\s(?!.*
\bend\b).*$';
to
foldingStartMarker = '^\s*(function|if|switch|while|for|try)\s*
(?!.*\bend\b).*$';
so that constructs like 'if(whatever)' (with no space) folds too.
Seems reasonable.
In no particular order, some more keywords:
case, otherwise,
varargin, varargout, inputname,
get, findobj, allchild,
dbstack, stop, waitbar
I wasn’t entirely sure how to scope these, so I placed them in
these three groups (the Matlab bundle seems to call must things
just a function):
{ name = 'storage.modifier.matlab';
match = '\b(varargin|varargout)\b';
},
{ name = 'keyword.control.matlab';
match = '\b(case|otherwise)\b';
},
{ name = 'keyword.other.matlab';
match = '\b(inputname|get|findobj|allchild|dbstack|stop|
waitbar)\b';
},
These are just words I've came across recently. I'd be glad to do
a more organized search if I knew it'd be used.
Maybe adding keywords from common toolboxes too, such as
statistics, optimization, etc.?
I am not a Matlab user myself, but I would certainly welcome
someone who wants to improve the bundle -- as mentioned, it has no
maintainer, and it never had, so there is room for improvements :)
_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmate-dev
_______________________________________________
textmate-dev mailing list
textmate-dev@lists.macromates.com
http://lists.macromates.com/mailman/listinfo/textmate-dev