Skip to content

Instantly share code, notes, and snippets.

@ptrv
Created December 19, 2015 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptrv/81cca18987fad81bb4bc to your computer and use it in GitHub Desktop.
Save ptrv/81cca18987fad81bb4bc to your computer and use it in GitHub Desktop.
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