Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Forked from mads-hartmann/Coffeescript ctags
Created May 6, 2011 09:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszkorecki/958663 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/958663 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/
" only variables and f = () -> functions, no class members, methods etc (yet)
let g:tagbar_type_coffee = {
\ 'ctagstype' : 'coffee',
\ 'kinds' : [
\ 'f:functions',
\ 'v:variables'
\ ],
\ }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment