Skip to content

Instantly share code, notes, and snippets.

@sjmyuan
Forked from mads-hartmann/Coffeescript ctags
Created August 2, 2017 03:07
Show Gist options
  • Save sjmyuan/a31d523692ede3990b5b88f3454c569a to your computer and use it in GitHub Desktop.
Save sjmyuan/a31d523692ede3990b5b88f3454c569a 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