我刚刚发现了coffeetags工具,并确认它可以在vim中使用。
是否有类似于Emacs的工具?有人能够让etags与coffeescript在Emacs中一起使用吗?
我刚刚发现了coffeetags工具,并确认它可以在vim中使用。
是否有类似于Emacs的工具?有人能够让etags与coffeescript在Emacs中一起使用吗?
Create a .ctags
file in your project root directory (here is the link to the original Gist):
--langdef=CoffeeScript
--langmap=CoffeeScript:.coffee
--regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\2/c,class/
--regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/
--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/
Generate the TAGS file: ctags -e -R source_folder