Skip to content

Instantly share code, notes, and snippets.

@guedes
Last active December 17, 2015 18:28
Show Gist options
  • Save guedes/5653005 to your computer and use it in GitHub Desktop.
Save guedes/5653005 to your computer and use it in GitHub Desktop.
My little `$HOME/.ctags` file to extend `ctags` to support Elixir language
# My little `$HOME/.ctags` file to extend `ctags` to support Elixir language
--langdef=elixir
--langmap=elixir:.ex.exs
--regex-elixir=/^[ \t]*defmodule[ \t]* ((\w(\.)?)+)/\1/m,module/
--regex-elixir=/^[ \t]*defrecord[ \t]* (\w+)/\1/r,record/
--regex-elixir=/^[ \t]*defmacro[ \t]* (\w+[!\?]?)/\1/d,macro/
--regex-elixir=/^[ \t]*def[p]?[ \t]* (\w+[!\?]?)/\1/f,function/
# You can remove some of the following lines
--exclude=*.as
--exclude=*.bat
--exclude=*.cc
--exclude=*.h
--exclude=*.htm
--exclude=*.html
--exclude=*.java
--exclude=*.js
--exclude=makefile
--exclude=*.mk
--exclude=*.php
--exclude=*.pl
--exclude=*.pm
--exclude=*.py
--exclude=*.rb
--exclude=*.sql
--exclude=*.tex
--exclude=*.vim
--links=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment