Skip to content

Instantly share code, notes, and snippets.

@flashingpumpkin
Created May 2, 2012 20:55
Show Gist options
  • Select an option

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

Select an option

Save flashingpumpkin/2580418 to your computer and use it in GitHub Desktop.
Coffee Script ctags
--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

Other ~/.ctags files didn't quite work. This is nicer.

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