Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@h14i
Last active December 16, 2015 01:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h14i/8a2a040eeb47af1f4ef3 to your computer and use it in GitHub Desktop.
Save h14i/8a2a040eeb47af1f4ef3 to your computer and use it in GitHub Desktop.
Dscanner driver for universal-ctags
#!/bin/sh
# ~/.ctags.d/drivers
() {
COMMAND_NOT_FOUND=127
if ! type dscanner; then
exit ${COMMAND_NOT_FOUND}
fi
} > /dev/null 2>&1
case "$1" in
--list-kinds*)
echo "\
g enum
e enum member
v variable
i interface
c class
s struct
f function
u union
T template"
exit $?
;;
-*)
echo "unknown option: $1" 1>&2
exit 1
;;
*)
command dscanner --ctags "$1"
exit $?
;;
esac
# ~/.ctags.d/optlib/
--xcmd-d=dscanner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment