Skip to content

Instantly share code, notes, and snippets.

@flatcap
Created August 10, 2020 12:43
Show Gist options
  • Save flatcap/14bdd589d3e1a4881f00c7fe1fad79e5 to your computer and use it in GitHub Desktop.
Save flatcap/14bdd589d3e1a4881f00c7fe1fad79e5 to your computer and use it in GitHub Desktop.
universal ctags for NeoMutt (put in ~/.ctags.d)
# Ignore the INITVAL, so ctags can recognise the global variable
-D INITVAL(name)=
-D ARRAY_HEAD(name,type)=struct name {}
-D LIST_HEAD(name,type)=struct name {}
-D SLIST_HEAD(name,type)=struct name {}
-D STAILQ_HEAD(name,type)=struct name {}
-D TAILQ_HEAD(name,type)=struct name {}
-D LIST_ENTRY(name)=struct name##_entries
-D SLIST_ENTRY(name)=struct name##_entries
-D STAILQ_ENTRY(name)=struct name##_entries
-D TAILQ_ENTRY(name)=struct name##_entries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment