-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ctags
More file actions
22 lines (19 loc) · 1.21 KB
/
.ctags
File metadata and controls
22 lines (19 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--langdef=Zig
--langmap=Zig:.zig
--regex-Zig=/^[ \t]*(export[ \t]+|pub[ \t]+|inline[ \t]+)*fn[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\2/f,functions/
--regex-Zig=/^[ \t]*(pub[ \t]+)?const[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]*=[ \t]*struct/\2/s,structs/
--regex-Zig=/^[ \t]*(pub[ \t]+)?const[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]*=[ \t]*enum/\2/e,enums/
--regex-Zig=/^[ \t]*(pub[ \t]+)?const[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]*=[ \t]*union/\2/u,unions/
--regex-Zig=/^[ \t]*(pub[ \t]+)?const[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\2/c,constants/
--regex-Zig=/^[ \t]*(pub[ \t]+)?var[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\2/v,variables/
--regex-Zig=/^[ \t]*test[ \t]+"([^"]*)"/\1/t,tests/
--langdef=Go
--langmap=Go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,functions/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/v,variables/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]+struct/\1/s,structs/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]+interface/\1/i,interfaces/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]+map/\1/m,maps/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)[ \t]+chan/\1/c,channels/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/t,types/
--regex-Go=/const[ \t]+([a-zA-Z_][a-zA-Z0-9_]*)/\1/o,constants/