Skip to content

Instantly share code, notes, and snippets.

@Talleyran
Forked from mads-hartmann/Coffeescript ctags
Created April 22, 2012 02:56
Show Gist options
  • Save Talleyran/2444020 to your computer and use it in GitHub Desktop.
Save Talleyran/2444020 to your computer and use it in GitHub Desktop.
ctags definitions for Coffeescript. Very basic for now. "> ctags -e -R source_folder" and then M-. to jump to the definition of any function or variable (if you're using emacs)
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/^[ \t]*class ([a-zA-Z_$][0-9a-zA-Z_$]*).*$/\1/c,class/
--regex-coffee=/^[ \t]*([a-zA-Z_$@][0-9a-zA-Z_$\.]*)[ \t]*[:=].*[=-]>.*$/\1/f,function/
--regex-coffee=/^[ \t]*([a-zA-Z_$@][0-9a-zA-Z_$\.]*)[ \t]*=[^->\n]*$/\1/v,variable/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment