Skip to content

Instantly share code, notes, and snippets.

@sysmon
Forked from mads-hartmann/Coffeescript ctags
Last active August 29, 2015 14:27
Show Gist options
  • Save sysmon/ac9e1db5d2b04e7f0439 to your computer and use it in GitHub Desktop.
Save sysmon/ac9e1db5d2b04e7f0439 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]*([A-Za-z.]+)[ \t]+=.*->.*$/\1/f,function/
--regex-coffee=/^[ \t]*([A-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