I tried to contact 'Wes' about the Lua bundle mentioned on the Wiki bundle page, but never got a response, and decided to just write my own.
I think the syntax highlighting is correct - it includes appropriate highlighting for all the keywords as well as all the built-in library functions.
In addition to some convenient Snippets for code forms that I personally write frequently, I've added 'cheat sheet' Snippets for all the global built-in functions and the table, string, and coroutine libraries. These tab trigger Snippets fill out the argument list with descriptive names, including which parameter(s) are optional. When parameters are optional, I included the preceding comma in the placeholder, so that tabbing through the function and pressing delete will remove any undesirable optional parameters.
(I got tired of entering all the Snippets, and have not yet added Snippets for the math, os, or io libraries.)
You can download my bundle from http://phrogz.net/tmp/ Lua.tmbundle.tar.gz
(Is anyone else using programming Lua on MacOS X? :)
I use it for WoW addons.
On Oct 9, 2005, at 8:23 PM, Gavin Kistner wrote:
I tried to contact 'Wes' about the Lua bundle mentioned on the Wiki bundle page, but never got a response, and decided to just write my own.
I think the syntax highlighting is correct - it includes appropriate highlighting for all the keywords as well as all the built-in library functions.
In addition to some convenient Snippets for code forms that I personally write frequently, I've added 'cheat sheet' Snippets for all the global built-in functions and the table, string, and coroutine libraries. These tab trigger Snippets fill out the argument list with descriptive names, including which parameter(s) are optional. When parameters are optional, I included the preceding comma in the placeholder, so that tabbing through the function and pressing delete will remove any undesirable optional parameters.
(I got tired of entering all the Snippets, and have not yet added Snippets for the math, os, or io libraries.)
You can download my bundle from http://phrogz.net/tmp/ Lua.tmbundle.tar.gz
(Is anyone else using programming Lua on MacOS X? :)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Was unable to download from the url provided.
On Oct 9, 2005, at 8:23 PM, Gavin Kistner wrote:
I tried to contact 'Wes' about the Lua bundle mentioned on the Wiki bundle page, but never got a response, and decided to just write my own.
I think the syntax highlighting is correct - it includes appropriate highlighting for all the keywords as well as all the built-in library functions.
In addition to some convenient Snippets for code forms that I personally write frequently, I've added 'cheat sheet' Snippets for all the global built-in functions and the table, string, and coroutine libraries. These tab trigger Snippets fill out the argument list with descriptive names, including which parameter(s) are optional. When parameters are optional, I included the preceding comma in the placeholder, so that tabbing through the function and pressing delete will remove any undesirable optional parameters.
(I got tired of entering all the Snippets, and have not yet added Snippets for the math, os, or io libraries.)
You can download my bundle from http://phrogz.net/tmp/ Lua.tmbundle.tar.gz
(Is anyone else using programming Lua on MacOS X? :)
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Oct 9, 2005, at 8:03 PM, Alec B. Beardsley wrote:
Was unable to download from the url provided. On Oct 9, 2005, at 8:23 PM, Gavin Kistner wrote:
You can download my bundle from http://phrogz.net/tmp/ Lua.tmbundle.tar.gz
Oops. I accidentally uploaded to the wrong folder.
Please try again.
Got it. Thanks. Looks pretty good at first glance.
On Oct 10, 2005, at 12:01 AM, Gavin Kistner wrote:
On Oct 9, 2005, at 8:03 PM, Alec B. Beardsley wrote:
Was unable to download from the url provided. On Oct 9, 2005, at 8:23 PM, Gavin Kistner wrote:
You can download my bundle from http://phrogz.net/tmp/ Lua.tmbundle.tar.gz
Oops. I accidentally uploaded to the wrong folder.
Please try again.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
The folding start/end is greedy, it will allow folding to begin inside a comment. Should use ^ in the start/end perhaps. Example:
-- bisection method for solving non-linear equations
delta=1e-6 -- tolerance
function bisect(f,a,b,fa,fb) local c=(a+b)/2 io.write(n," c=",c," a=",a," b=",b,"\n") if c==a or c==b or math.abs(a-b)<delta then return c,b-a end n=n+1 local fc=f(c) if fa*fc<0 then return bisect(f,a,c,fa,fc) else return bisect (f,c,b,fc,fb) end end
(The for in the comment being the issue)
On Oct 11, 2005, at 10:52 PM, Michael Sheets wrote:
The folding start/end is greedy, it will allow folding to begin inside a comment. Should use ^ in the start/end perhaps. Example:
-- bisection method for solving non-linear equations
[...]
(The for in the comment being the issue)
I've fixed that locally with: foldingStartMarker = '^\s*\b(function|if|for)\b|{[ \t]*$|[['; foldingStopMarker = '\bend\b|^\s*}|]]';
The above still causes an unpaired { at the end of the line in a comment to start folding, but that seems rather unlikely. I'm going to play with this a bit, and finish adding the library snippets, and then I'll be checking this bundle into SVN (probably tonight).