Skip to content

Instantly share code, notes, and snippets.

@ymtszw
ymtszw / .ctags
Last active November 2, 2017 10:52
Elixir(with skirino/croma) and Scala ctags pattern file. https://github.com/mmorearty/elixir-ctags http://ronor.blog81.fc2.com/blog-entry-66.html
--langdef=Elixir
--langmap=Elixir:.ex.exs
--regex-Elixir=/^[ \t]*def(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\2/f,function,functions/
--regex-Elixir=/^[ \t]*defpt[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/f,function,functions/
--regex-Elixir=/^[ \t]*defun(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\2/f,function,functions/
--regex-Elixir=/^[ \t]*defunpt[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/f,function,functions/
--regex-Elixir=/^[ \t]*defcallback[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/c,callbacks,callbacks (defcallback ...)/
--regex-Elixir=/^[ \t]*defdelegate[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/d,delegates,delegates (defdelegate ...)/
--regex-Elixir=/^[ \t]*defexception[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/e,exceptions,exceptions (defexception ...)/
--regex-Elixir=/^[ \t]*defimpl[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/i,implementations,implementations (defimpl ...)/