Skip to content

Instantly share code, notes, and snippets.

@rosenfeld rosenfeld/.ctags
Last active Jan 12, 2018

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

axelson commented Dec 11, 2014

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

@jasonm23

This comment has been minimized.

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

This comment has been minimized.

Copy link
Owner Author

rosenfeld commented Apr 1, 2015

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
You can’t perform that action at this time.