Octave specific keywords: end_try_catch, endfor, endfunction, endif, endwhile
added some more Octave specific keywords: end_try_catch, endfor, endf…
…unction, endif, endwhile
Did a quick google search to verify this change and found a list of reserved keywords:
Many of which are not handled in the grammar. Also we should add these to the folding/indent settings.
You are right. I just corrected what was bothering me. Will you take care of those additional corrections? If not I can do it, but it will take some time. I am not an expert in Textmate's syntax definitions...
Merge remote-tracking branch 'upstream/master'
added keyword parfor, see cerveza1988@2d62576
added the possibility to execute Matlab/Octave code by [CMD]+R.
This is an extension of the code at https://github.com/DGrady/matlab.tmbundle
I have added some more features to my fork. It includes now the "parfor" keyword as proposed by cerveza1988 and it allows to execute a code selection in Terminal, similar to the code proposed by https://github.com/DGrady/matlab.tmbundle. My script works for both Octave and Matlab.
Please let me know, what to do regarding the old folding/indent issue such that the changes can go upstream.
Delayed merging this so I could work on merging all of the various work that's been done into one. Seems there are a few items missing from your execute command though?
Theres a lot of oddness in the bundle still but I've merged in a lot of new items. Honestly thinking about splitting these into an Octave and a Matlab bundle, even though they are technically compatible it seems there are a lot of exceptions to the compatibility that make the bundle more complicated. Haven't decided yet though, open to comments there.
Yes, possibly. Do you know what is actually missing? As far as I remember I uncluttered the shell commands a bit but it should be more or less easy to incorporate.
I would think that splitting the bundles is more effort than keeping them in one. In the end, the syntax is the same with only a few different keywords. You would need to duplicate a lot and keeping future changes in sync could become a pain (because people will send patches only for their bundle).
If you look at d22da94 it should be pretty obvious that some items are missing. There is no Spawn command and the Execute command references the wrong script name without the required arguments.
Pulled in everything but the ⌘R changes.
Perfect. I will clone your version and try to reimplement the Octave compatibility stuff. I guess this makes most sense.
Closing this since there has been no activity, open a new pull request if there are further items to consider.