[TxMt] TmCodeBrowser for Actionscript?

Gerd Knops gerti-textmate at bitart.com
Fri Nov 4 17:58:15 UTC 2005


On Fri, Nov 4, at 4:14 AM, Simon Gregory wrote:

>
>> But looking at actionscript.c, I think you can do the same by  
>> simply adding these lines to ~/.ctags.tmcodebrowser (assuming you  
>> are using that latest version from this afternoon):
>>
>> 	--langdef=ActionScript
>> 	--langmap=ActionScript:.as
>> 	--regex-ActionScript=/^[ \t]*[(private|public|static)( \t)] 
>> *function[ \t]+([A-Za-z0-9_]+)[ \t]*\\(/\1/f,function,functions/
>> 	--regex-ActionScript=/^[ \t]*[(public)( \t)]*function[ \t]+(set| 
>> get)[ \t]+([A-Za-z0-9_]+)[ \t]*\\(/\2/p,property,properties/
>> 	--regex-ActionScript=/.*\.prototype\.([A-Za-z0-9 ]+)=([ \t]?) 
>> function([ \t]?)*\\(/\1/f,function,functions/
>>
>> Please check if that works, so I can add the lines to the default  
>> definitions.
>
> With the latest version of the plug-in and other languages working  
> I've copied and pasted the above lines into the ctags.tmcodebrowser  
> file but it doesn't work for me :(

Sorry, I overlooked an escaped backslash. Try this:


--langdef=ActionScript
--langmap=ActionScript:.as
--regex-ActionScript=/^[ \t]*[(private|public|static)( \t)]*function 
[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\1/f,function,functions/
--regex-ActionScript=/^[ \t]*[(public)( \t)]*function[ \t]+(set|get) 
[ \t]+([A-Za-z0-9_]+)[ \t]*\(/\2/p,property,properties/
--regex-ActionScript=/.*\.prototype\.([A-Za-z0-9 ]+)=([ \t]?)function 
([ \t]?)*\(/\1/f,function,functions/


Gerd




More information about the textmate mailing list