Skip to content

Instantly share code, notes, and snippets.

@rosenfeld
Last active January 12, 2018 00:50
Show Gist options
  • Save rosenfeld/2405554 to your computer and use it in GitHub Desktop.
Save rosenfeld/2405554 to your computer and use it in GitHub Desktop.
CoffeeScript support for exuberant-ctags
--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/
@axelson
Copy link

axelson commented Dec 11, 2014

An alternative to this (for people who arrive via google) is: https://github.com/lukaszkorecki/CoffeeTags

@jasonm23
Copy link

jasonm23 commented Apr 1, 2015

Thanks for doing this.

Small note.

--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/

Shouldn't this be :

--regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^-=>\n]*$/\1/v,variable/

? 😄

@rosenfeld
Copy link
Author

Hi @jasonm23, yes, I think you're right.

@alexlson, thanks for the pointer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment