Hi there,
I have actionscript installed for ctags from my jEdit days:
http://tinyurl.com/7tshw http://www.appliedrhetoric.com/actionscript.c
However the browser isn't coming up with anything. The only thing I can think of that might be off would be the case of the name:
(20:14:05 <~>) 0 $ ctags --list-languages ActionScript Asm Asp …
In the Language menu it's "Actionscript" without the camel case for "Script". Just wanted to throw this out before recompiling ctags to make sure that there are no other possible issues. ___________________ Ben Jackson Diretor de Desenvolvimento
ben@incomumdesign.com http://www.incomumdesign.com
On Thu, Nov 3, at 4:22 PM, Benjamin Jackson wrote:
Hi there,
I have actionscript installed for ctags from my jEdit days:
http://tinyurl.com/7tshw http://www.appliedrhetoric.com/actionscript.c
However the browser isn't coming up with anything. The only thing I can think of that might be off would be the case of the name:
(20:14:05 <~>) 0 $ ctags --list-languages ActionScript Asm Asp …
In the Language menu it's "Actionscript" without the camel case for "Script". Just wanted to throw this out before recompiling ctags to make sure that there are no other possible issues.
TmCodeBrowser pretty much ignores the language names (with the exception of Objective-C).
TmCodeBrowser brings it's own exuberant ctags though, not including the actionscript hack.
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.
Thanks
Gerd
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 :(
Have any other ActionScripters had any luck?
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
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/
This works a treat. Thanks Gerd !