Save .ctags to ~/.ctags
or append it to the end of your existing
~/.ctags
.
If you use Tagbar for Vim add
the contents of .vimrc to ~/.vimrc
These regexes should cover all of the following:
class MyAwesomeClass # tag = MyAwesomeClass
class my_Class # tag = my_Class
class Namespace.MyClass # tag = MyClass
class Namespace.Child extends Namespace.Base # tag = Child
doIt: -> # tag = doIt
zip = -> # tag = zip
fooBar: (param) -> # tag = fooBar
bazZoo: => x * x # tag = bazZoo
my_Var = 'foo' # tag = myVar
@local_Var = 'bar' # tag = localVar
prop: 'bar' # tag = prop
@bam: 'zoo' # tag = bam
new: (@foo) -> # tag = foo
new: (@bar, @zip) -> # tags = bar, zip
new: (@prop = {}) -> # tag = prop
new: (@baz={}, @me = 'foo') -> # tags = baz, me
@bjornharrtell for the original Coffeescript gist
@jesstellford and @Tyderion for additions to the original