Skip to content

Instantly share code, notes, and snippets.

@coltfred
Created June 11, 2013 19:19
Show Gist options
  • Save coltfred/5759793 to your computer and use it in GitHub Desktop.
Save coltfred/5759793 to your computer and use it in GitHub Desktop.
ctags for scala
--langdef=scala
--langmap=scala:.scala
--regex-Scala=/^[ \t]*(final[ \t]*)*(abstract[ \t]*)*(sealed[ \t]*)*(case[ \t]*)*class[ \t]*([a-zA-Z0-9_]+)/\5/c,classes/
--regex-Scala=/^(final[ \t]*)*(case[ \t]*)*[ \t]*object[ \t]*([a-zA-Z0-9_]+)/\3/o,objects/
--regex-Scala=/^[ \t]*(protected[ \t]*)*(sealed[ \t]*)*trait[ \t]*([a-zA-Z0-9_]+)/\3/t,traits/
--regex-Scala=/[ \t]*def[ \t]*([a-zA-Z0-9_=]+)[ \t]*.*[:=]/\1/m,methods/
--regex-Scala=/[ \t]*(final[ \t]*)*val[ \t]*([a-zA-Z0-9_]+)[ \t]*[:=]/\2/V,values/
--regex-Scala=/[ \t]*var[ \t]*([a-zA-Z0-9_]+)[ \t]*[:=]/\1/v,variables/
--regex-Scala=/^[ \t]*type[ \t]*([a-zA-Z0-9_]+)[ \t]*[\[<>=]/\1/T,types/
--regex-Scala=/^[ \t]*import[ \t]*([a-zA-Z0-9_{}., \t=>]+$)/\1/i,includes/
--regex-Scala=/^[ \t]*package[ \t]*([a-zA-Z0-9_.]+$)/\1/p,packages/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment