Skip to content

Instantly share code, notes, and snippets.

@flashingpumpkin
Created August 2, 2012 15:11
Show Gist options
  • Select an option

  • Save flashingpumpkin/3237797 to your computer and use it in GitHub Desktop.

Select an option

Save flashingpumpkin/3237797 to your computer and use it in GitHub Desktop.
CoffeeScript .ctags file
-R
--exclude=.git
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/^[ \t]*class[ \t]+([A-Za-z.@]+)/\1/,class/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]*\:.*(->|=>).*$/\1/,method/
--regex-coffee=/^[ \t]*(@[A-Za-z.]+)[ \t]*\:.*(->|=>).*$/\1/,staticmethod/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]*=.*(->|=>).*$/\1/,function/
--regex-coffee=/^[ \t]*([A-Z0-9_]+)[ \t]*=.*$/\1/,constant/
@flashingpumpkin
Copy link
Copy Markdown
Author

Save file as ~/.ctags to get tag navigation in your CoffeeScript projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment