Skip to content

Instantly share code, notes, and snippets.

@hashrocketeer
Forked from bernerdschaefer/.ctags
Created November 1, 2010 12:47
Show Gist options
  • Save hashrocketeer/658111 to your computer and use it in GitHub Desktop.
Save hashrocketeer/658111 to your computer and use it in GitHub Desktop.
--regex-ruby=/(^|[:;])[ \t]*([A-Z][[:alnum:]_]+) *=/\2/c,class,constant/
--regex-ruby=/(^|;)[ \t]*(has_many|belongs_to|has_one|has_and_belongs_to_many)\(? *:([[:alnum:]_]+)/\3/f,function,association/
--regex-ruby=/(^|;)[ \t]*(named_)?scope\(? *:([[:alnum:]_]+)/\3/f,function,named_scope/
--regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2/f,function,aasm_event/
--regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2!/f,function,aasm_event/
--regex-ruby=/(^|;)[ \t]*event\(? *:([[:alnum:]_]+)/\2?/f,function,aasm_event/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment