From d73c84e299d7617014c67f34ad7afbc641eaf690 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Wed, 7 Jul 2021 19:34:54 -0700 Subject: instructions for Universal Ctags Thanks Sumeet Agarwal for raising this issue. --- editor/editor.md | 7 ++++--- editor/exuberant_ctags_rc | 8 -------- editor/mu.ctags | 8 ++++++++ 3 files changed, 12 insertions(+), 11 deletions(-) delete mode 100644 editor/exuberant_ctags_rc create mode 100644 editor/mu.ctags diff --git a/editor/editor.md b/editor/editor.md index 65f2badb..d3e54f68 100644 --- a/editor/editor.md +++ b/editor/editor.md @@ -10,9 +10,10 @@ instructions within. The Vim files are most developed. In particular, I recommend some optional setup in subx.vim to use multiple colors for comments. -If you use [Exuberant Ctags](http://ctags.sourceforge.net) for jumping easily -from names to their definitions in your editor, copy the contents of `exuberant_ctags_rc` -into your `.ctags` file. +If you use [`ctags`](http://ctags.sourceforge.net) for jumping easily +from names to their definitions in your editor, set it up to load `mu.ctags`. +For classic Exuberant Ctags, copy it into `~/.ctags`. For the newer Universal +Ctags, copy it into `~/.ctags.d/mu.ctags`. [Here](https://lobste.rs/s/qglfdp/subx_minimalist_assembly_language_for#c_o9ddqk) are some tips on my setup for quickly finding the right opcode for any diff --git a/editor/exuberant_ctags_rc b/editor/exuberant_ctags_rc deleted file mode 100644 index 92e873f9..00000000 --- a/editor/exuberant_ctags_rc +++ /dev/null @@ -1,8 +0,0 @@ ---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/ 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/ -- cgit 1.4.1-2-gfad0