[TxMt] Erlang bundle

ke han ke.han at redstarling.com
Tue Apr 18 08:59:42 UTC 2006


Domenico,
Here are my bundles for erlang and yaws.  Only language grammar so  
far.  I tested yours and found a few quirks and reverted back to  
mine.  The biggest quirk I noticed in yours was that it doesn't  
handle camelCase.  So a function or atom of myName gets color  
highlighted into two different words.
Try out my version and see what you think.  The Twilight theme works  
very well for me.
I like your ideas of indenting...if you make any progress I would  
love to see it.
I am far from a TextMate expert but would be happy to collaborate  
with you to get erlang and yaws bundles in better form.
thanks, ke han


-------------- next part --------------
A non-text attachment was scrubbed...
Name: Erlang.tmbundle.zip
Type: application/zip
Size: 1634 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060418/7067e6b7/attachment.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Yaws.tmbundle.zip
Type: application/zip
Size: 1498 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060418/7067e6b7/attachment-0001.zip>
-------------- next part --------------


On Apr 17, 2006, at 11:42 PM, Domenico Carbotta wrote:

> I promised I'd be back!
>
> I'm working on a bundle for Erlang [1], a nice functional language  
> that focuses on multithreading and distributed programming. It's  
> mainly used in embedded programming of telephony equipment, but you  
> might have heard of ejabberd (a Jabber server written in ? guess  
> what ? Erlang). this is a first rough draft -- there's only a basic  
> syntax description. when it gets good enough I'll add it to the  
> repository, if you wish.
>
> in order to improve it, I need some help on automated indentation.  
> this is a typical (small) Erlang module:
>
>> -module(sample).
>> -export([fact/1]).
>>
>> fact(0) ->
>> 	1;
>> fact(N) ->
>> 	N * fact(N - 1).
>
> I'd like to increase indentation of the next line if the current  
> line ends with -> and decrease indentation of the next line if the  
> line ends with "." or ";". still, I wasn't able to tweak the prefs  
> in order to achieve this... (I tried and I tried, man, but I just  
> wasn't up to the task.) help? help?!? HEEEEEELP! ;)
>
> ciao,
>
> Domenico
>
> ---
> [1] http://www.erlang.org/, http://www.erlang.se/
>
> <Erlang.tmbundle.zip>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate



More information about the textmate mailing list