Mon, 24 Oct 2016 11:50:42 -0400
quick tagbar for elixir too
181 | 1 | --extra=+q |
426
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
2 | --exclude=.git |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
3 | --exclude=.hg |
181 | 4 | --exclude=*min.js |
5 | ||
426
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
6 | --langmap=perl:+.pod |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
7 | --regex-perl=/with[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/w,role,roles/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
8 | --regex-perl=/extends[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
9 | --regex-perl=/use[ \t]+base[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
10 | --regex-perl=/use[ \t]+parent[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/e,extends/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
11 | --regex-perl=/^[ \t]*use[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/u,use,uses/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
12 | --regex-perl=/^[ \t]*require[ \t]+['"]*([A-Za-z][A-Za-z0-9:]+)['" \t]*;/\1/r,require,requires/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
13 | --regex-perl=/^[ \t]*has[ \t]+['"]*([A-Za-z_+][A-Za-z0-9_]+)['"]*[ \t]+/\1/a,attribute,attributes/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
14 | --regex-perl=/^[ \t]*around[ \t]+['"]*([A-Za-z_][A-Za-z0-9_]+)['"]*[ \t]+/\1/x,around/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
15 | --regex-perl=/^[ \t]*\*([A-Za-z_][A-Za-z0-9:_]+)[ \t]+=/\1/l,alias,aliases/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
16 | --regex-perl=/^[ \t]*our[ \t]+([\$@%][A-Za-z_][A-Za-z0-9_]+)/\1/o,our,ours/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
17 | --regex-perl=/use[ \t]+constant[ \t]+['"]*([A-Za-z_][A-Za-z0-9_]+)['" \t]*/\1/c,constants/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
18 | --regex-perl=/^\=head1[ \t]+(.+)/\0/d,pod,Plain Old Documentation/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
19 | --regex-perl=/^\=head2[ \t]+(.+)/-- \1/d,pod,Plain Old Documentation/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
20 | --regex-perl=/^\=head[3-5][ \t]+(.+)/--- \1/d,pod,Plain Old Documentation/ |
4fcad88dbe5f
improve tagbar for perl
Meredith Howard <mhoward@roomag.org>
parents:
231
diff
changeset
|
21 | |
231
494ac568f07f
avoid false negatives in tags
Meredith Howard <mhoward@roomag.org>
parents:
230
diff
changeset
|
22 | --regex-perl=/^\s*fun +([0-9a-zA-Z_]+) *[{(]/\1/s,subroutines/ |
494ac568f07f
avoid false negatives in tags
Meredith Howard <mhoward@roomag.org>
parents:
230
diff
changeset
|
23 | --regex-perl=/^\s*method +([0-9a-zA-Z_]+) *[{(]/\1/m,methods/ |
230
5cd77842c623
Add ctags matches for fun and method
Meredith Howard <mhoward@roomag.org>
parents:
225
diff
changeset
|
24 | --regex-perl=/(['"]?)([0-9a-zA-Z_]+)\1\s+(,|=>)\s+sub\s+[{(]/\2/s,subroutines/ |
225 | 25 | |
26 | --langdef=Elixir | |
27 | --langmap=Elixir:.ex.exs | |
28 | --regex-Elixir=/^[ \t]*def(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\2/f,functions,functions (def ...)/ | |
29 | --regex-Elixir=/^[ \t]*defcallback[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/c,callbacks,callbacks (defcallback ...)/ | |
30 | --regex-Elixir=/^[ \t]*defdelegate[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/d,delegates,delegates (defdelegate ...)/ | |
31 | --regex-Elixir=/^[ \t]*defexception[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/e,exceptions,exceptions (defexception ...)/ | |
32 | --regex-Elixir=/^[ \t]*defimpl[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/i,implementations,implementations (defimpl ...)/ | |
33 | --regex-Elixir=/^[ \t]*defmacro(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)\(/\2/a,macros,macros (defmacro ...)/ | |
34 | --regex-Elixir=/^[ \t]*defmacro(p?)[ \t]+([a-zA-Z0-9_?!]+)?[ \t]+([^ \tA-Za-z0-9_]+)[ \t]*[a-zA-Z0-9_!?!]/\3/o,operators,operators (e.g. "defmacro a <<< b")/ | |
35 | --regex-Elixir=/^[ \t]*defmodule[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/m,modules,modules (defmodule ...)/ | |
36 | --regex-Elixir=/^[ \t]*defprotocol[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/p,protocols,protocols (defprotocol...)/ | |
37 | --regex-Elixir=/^[ \t]*Record\.defrecord[ \t]+:([a-zA-Z0-9_]+)/\1/r,records,records (defrecord...)/ |