Skip to content

Instantly share code, notes, and snippets.

@ptrv

ptrv/etags_lua.sh

Created Dec 19, 2015
Embed
What would you like to do?
generate Emacs tags file for lua files
#!/usr/bin/bash
etags --language=lua --regex='/.*\([^. \t]\)*[ \t]*=[ \t]*function/\1/' \
--regex='/.*\(local\|\)[ \t][ \t]*function[ \t]\([^ \t(]*\)[ \t]*(/\2/' **/*lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.