forked from balsama/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathctags
50 lines (46 loc) · 2.83 KB
/
ctags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--recurse
--exclude=.svn
--exclude=.git
--exclude="*/_*cache/*"
--exclude="*/_*logs{0,1}/*"
--exclude="*/_*data/*"
--totals=yes
--tag-relative=yes
--PHP-kinds=+cf
--languages=PHP,js,ts
--regex-PHP=/abstract class ([^ ]*)/\1/c/
--regex-PHP=/interface ([^ ]*)/\1/c/
--regex-PHP=/trait ([^ ]*)/\1/c/
--regex-PHP=/(public |static |abstract |protected |private )+ function +([^ \(]*)/\2/f/
--langdef=ts
--langmap=ts:.ts
--langmap=ts:+.tsx
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*(default)?[ \t]*class[ \t]+([a-zA-Z0-9_]+)/\4/c,classes/
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*(default)?[ \t]*abstract class[ \t]+([a-zA-Z0-9_]+)/\4/a,abstract classes/
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*(default)?[ \t]*module[ \t]+([a-zA-Z0-9_]+)/\4/n,modules/
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*(default)?[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\4/t,types/
--regex-ts=/^[ \t]*(export)?[ \t]*namespace[ \t]+([a-zA-Z0-9_]+)/\2/n,modules/
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*(default)?[ \t]*function[ \t]+([a-zA-Z0-9_]+)/\4/f,functions/
--regex-ts=/^[ \t]*export[ \t]+var[ \t]+([a-zA-Z0-9_]+)/\1/v,variables/
--regex-ts=/^[ \t]*var[ \t]+([a-zA-Z0-9_]+)[ \t]*=[ \t]*function[ \t]*\(\)/\1/l,varlambdas/
--regex-ts=/^[ \t]*(export)?[ \t]*(public|private)[ \t]+(static)?[ \t]*([a-zA-Z0-9_]+)/\4/m,members/
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*interface[ \t]+([a-zA-Z0-9_]+)/\3/i,interfaces/
--regex-ts=/^[ \t]*(export)?[ \t]*(declare)?[ \t]*(default)?[ \t]*enum[ \t]+([a-zA-Z0-9_]+)/\4/e,enums/
--regex-ts=/^[ \t]*(public|private|protected)*[ \t]*(async)*[ \t]*(function)*[ \t]*([A-Za-z$_][A-Za-z0-9_$]+)[ \t]*(<[a-zA-Z_$ ]+>)*[ \t]*\((.*)/\4/m,method/
--langdef=js
--langmap=js:.js
--langmap=js:+.jsx
--regex-js=/[ \t.]([A-Z][A-Z0-9._$]+)[ \t]*[=:][ \t]*([0-9"'\[\{]|null)/\1/n,constant/
--regex-js=/\.([A-Za-z0-9._$]+)[ \t]*=[ \t]*\{/\1/o,object/
--regex-js=/['"]*([A-Za-z0-9_$]+)['"]*[ \t]*:[ \t]*\{/\1/o,object/
--regex-js=/([A-Za-z0-9._$]+)\[["']([A-Za-z0-9_$]+)["']\][ \t]*=[ \t]*\{/\1\.\2/o,object/
--regex-js=/([A-Za-z0-9._$]+)[ \t]*=[ \t]*\(function\(\)/\1/c,class/
--regex-js=/['"]*([A-Za-z0-9_$]+)['"]*:[ \t]*\(function\(\)/\1/c,class/
--regex-js=/class[ \t]+([A-Za-z0-9._$]+)[ \t]*/\1/c,class/
--regex-js=/([A-Za-z$][A-Za-z0-9_$()]+)[ \t]*=[ \t]*[Rr]eact.createClass[ \t]*\(/\1/c,class/
--regex-js=/([A-Z][A-Za-z0-9_$]+)[ \t]*=[ \t]*[A-Za-z0-9_$]*[ \t]*[{(]/\1/c,class/
--regex-js=/([A-Z][A-Za-z0-9_$]+)[ \t]*:[ \t]*[A-Za-z0-9_$]*[ \t]*[{(]/\1/c,class/
--regex-js=/([A-Za-z$][A-Za-z0-9_$]+)[ \t]*=[ \t]*function[ \t]*\(/\1/f,function/
--regex-js=/(public|private|protected)*[ \t]*(function|async)*[ \t]*([A-Za-z$_][A-Za-z0-9_$]+)[ \t]*(<[a-zA-Z0-9_$ ]+>)*\(.*{/\3/m,method/
--regex-js=/['"]*([A-Za-z$][A-Za-z0-9_$]+)['"]*:[ \t]*function[ \t]*\(/\1/m,method/
--regex-js=/([A-Za-z0-9_$]+)\[["']([A-Za-z0-9_$]+)["']\][ \t]*=[ \t]*function[ \t]*\(