-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom.ctags
58 lines (44 loc) · 1.83 KB
/
custom.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
51
52
53
54
55
56
57
58
# Inspect excluded files: ctags --list-excludes
#
# Inspect languages and their file suffixes: ctags --list-maps
#
# Inspect kinds: ctags --list-kinds-full
--exclude=*.min.css
--exclude=*.min.js
--exclude=*~
--exclude=.idea
--exclude=.lein-*
--exclude=.nrepl-port
--exclude=node_modules
--exclude=target
--exclude=vendor
--exclude=vendors
# function statement
--regex-JavaScript=/(^|[ \t]+)(async[ \t]+)?\(?function[ \t]*(\*[ \t]*)?([A-Za-z_$][A-Za-z0-9_$]+)[ \t\(]/\4/f/
# assign function to something
--regex-JavaScript=/(^|[ \t]+)([A-Za-z_$][A-Za-z0-9_$]+)[ \t]*=[ \t]*(async[ \t]+)?function[ \t]*(\*[ \t]*)?\(/\2/f/
# assign null to variable
--regex-JavaScript=/(^|[ \t]+)([A-Za-z_$][A-Za-z0-9_$]+)[ \t]*=[ \t]*null([;, \t]|$)/\2/v/
# set property to something
--regex-JavaScript=/\.([A-Za-z_$][A-Za-z0-9._$]+)[ \t]*=/\1/M/
# JSX property at declaration site
--regex-JavaScript=/(^|[ \t]+)([A-Za-z][A-Za-z0-9_$]+)=\{/\2/p/
--regex-SCSS=/^[ \t]*([A-Za-z_][A-Za-z0-9_-]+)?\.([A-Za-z_][A-Za-z0-9_-]+)[ \t]*[,{]/\2/c/
--langdef=Less
--map-Less=+.less
--kinddef-Less=i,id,identities
--regex-Less=/^[ \t]*([A-Za-z_][A-Za-z0-9_-]+)?#([A-Za-z_][A-Za-z0-9_-]+)[ \t]*[,{]/\2/i/
--kinddef-Less=c,class,classes
--regex-Less=/^[ \t]*([A-Za-z_][A-Za-z0-9_-]+)?\.([A-Za-z_][A-Za-z0-9_-]+)[ \t]*[,{]/\2/c/
--kinddef-Less=v,variable,variables
--regex-Less=/^[ \t]*@([A-Za-z_][A-Za-z0-9_-]+):/\1/v/
--map-Yaml=+.yaml
--kinddef-Yaml=m,mapping,mappings
--regex-Yaml=/^[ \t]*([A-Za-z0-9.\-_$]+):/\1/m/
--regex-Yaml=/^[ \t]*'([^']+)':/\1/m/
--regex-Yaml=/^[ \t]*"([^"]+)":/\1/m/
--kinddef-Yaml=r,register,Ansible registers
--regex-Yaml=/^[ \t]*register:[ \t]*([A-Za-z0-9_$]+)/\1/r/
--regex-Yaml=/^[ \t]*['"]?register['"]?:[ \t]*([A-Za-z0-9_$]+)/\1/r/
--regex-Yaml=/^[ \t]*['"]?register['"]?:[ \t]*'([^']+)'/\1/r/
--regex-Yaml=/^[ \t]*['"]?register['"]?:[ \t]*"([^"]+)"/\1/r/