about summary refs log tree commit diff stats
path: root/editor/mu.ctags
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-07-07 19:34:54 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-07-07 19:34:54 -0700
commitd73c84e299d7617014c67f34ad7afbc641eaf690 (patch)
tree0aa8f451fbf1cc783b164dfac26bbd731fc8c76e /editor/mu.ctags
parentd78a45340c27a8a3a4b7ab334c1807a477b97c76 (diff)
downloadmu-d73c84e299d7617014c67f34ad7afbc641eaf690.tar.gz
instructions for Universal Ctags
Thanks Sumeet Agarwal for raising this issue.
Diffstat (limited to 'editor/mu.ctags')
-rw-r--r--editor/mu.ctags8
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/mu.ctags b/editor/mu.ctags
new file mode 100644
index 00000000..92e873f9
--- /dev/null
+++ b/editor/mu.ctags
@@ -0,0 +1,8 @@
+--langdef=mu
+--langmap=mu:.mu
+--regex-mu=/^fn[ \t]+([^ \t]*)/\1/d,definition/
+--regex-mu=/^type[ \t]+([^ \t]*)/\1/t,typeref/
+
+--langdef=subx
+--langmap=subx:.subx
+--regex-subx=/^([^$ #][^ #]*):/\1/d,definition/