How to index simple javascript hash/objects with ctags? -
i use ctags navigate javascript apps , found functions added index , work great, yet when have seemingly basic hash/object isn't added index/ctags file when index using command below. can add command or should know ctags change behavior?
ctags -a -rf .ctags --languages=javascript,typescript --exclude=.git --exclude="*.min.js" --exclude=node_modules
here javascript object in question
var myasynccomponent = { hello: null, render: function() { return "abc123"; } };
i think might because not using correct javascript ctags definition file.
i trying example out using definition tim-smart posted on over github in gist.
all have include in .ctag definition file in home directory (/~) , run:
ctags --languages=js <name of js file(s)>
that way produce tags file can consumed editor or ide.
i hope helps. tried sublime text 2 , ctags plugin , able navigate objects attribute without trouble.
Comments
Post a Comment