diff options
author | 2014-12-24 16:04:56 -0500 | |
---|---|---|
committer | 2014-12-24 16:04:56 -0500 | |
commit | f3da22c0a8344852d72ff9c4ffc852617a5be22a (patch) | |
tree | 773309fa8ebce68b47b746a8db1aeb8b2f742d37 | |
parent | 776e3578df31adcd07e73e1a89ec6525f4f149d2 (diff) | |
download | textadept-f3da22c0a8344852d72ff9c4ffc852617a5be22a.tar.gz textadept-f3da22c0a8344852d72ff9c4ffc852617a5be22a.zip |
Added Makefile rule to generate ctags; src/Makefile
-rw-r--r-- | src/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 14e2a400..36bd32c0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -473,8 +473,17 @@ $(bombay_zip): ; wget http://foicica.com/hg/bombay/archive/tip.zip -O $@ mv $(notdir $@)/*/* $(dir $@) $(cloc): ; wget http://prdownloads.sourceforge.net/cloc/$@ -O $@ -# Count lines of code. +# Count lines of code and generate ctags. sources = ../core ../modules/ansi_c ../modules/lua ../modules/textadept \ ../themes textadept.c Makefile ../init.lua ../properties.lua count: $(cloc) ; perl $< $(sources) --not-match-f=tadoc.lua +ctags: + ctags -R --langdef=luax --langmap=luax:.lua --exclude="*doc*" \ + --exclude=scintilla/cocoa --exclude=scintilla/lexers \ + --exclude=scintilla/qt --exclude=scintilla/scripts \ + --exclude=scintilla/test --exclude=scintilla/win32 \ + --regex-luax="/^\s*function\s+[^[:space:]\.]*\.?([[:alnum:]_]+)\(/\1/f/" \ + --regex-luax="/^\s*local\s+function\s+([[:alnum:]_]+)\(/\1/F/" \ + --regex-luax="/^[^[:space:]\.]*\.?([[:alnum:]_]+)\s*=\s*[{]/\1/t/" \ + $(sources) LexLPeg.cxx scintilla gtdialog/gtdialog.c |