-
-
Save bjornharrtell/2901844 to your computer and use it in GitHub Desktop.
ctags definitions for coffeescript. Detects classes, static/class methods, fields, static fields, plain functions, variables.
With following valid CoffeeScript code:
class Jola
constructor: (@misio) ->
console.log @misio
I get:
ctags: Warning: a.coffee:2: null expansion of name pattern "\3"
This regex does not parse functions containing underscores.
The rest works for me though....
I'm not good enough with regex to change yours to accept underscores in function names.
It would be highly appreciated if you'd add this :)
@Tyderion I think I fixed that, take a look at my fork.
@Gonzih / @Tyderion / @bjornharrtell - I have updated this gist to cover more cases, and documented those cases in my fork: https://gist.github.com/jesstelford/6134172
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed so that @field = something translates to field not static field, since that syntax is most often used inside methods to assign fields. It can be used at class level to create static fields, but I think @field: something is the syntax to use instead.