[TxMt] Defining functions in bundle
cormullion at mac.com
cormullion at mac.com
Sat Jul 29 14:14:06 UTC 2006
I'd like my functions to appear in the popup menu. My function
definitions look like this:
(define (func-name arg1 arg2)
(print "the arguments were " arg1 " and " arg2))
and the bundle I've been given has this:
{ name = 'declaration.function.lisp';
match = '(\b(?i:(def\-new|define(-macro)?))\b)(\s+)((\w|\-|\!|\?)*)';
captures =
{ 2 = { name = 'keyword.control.function-type.lisp'; };
4 = { name = 'entity.name.function.lisp'; };
};
},
I can understand why it also covers other types of definition ( eg
(def-new and (define-macro ) although I rarely use these, and it sort
of looks Ok at first glance (I don't know whether some of those
parentheses should be escaped...). Nothing appears in the function
pop-up menu, though. Should I expect this to work as like this or has
something else gone wrong, or does it rely on other things being set
as well?
--
(<http://newlisper.blogspot.com/>)
More information about the textmate
mailing list