From f3da22c0a8344852d72ff9c4ffc852617a5be22a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 24 Dec 2014 16:04:56 -0500 Subject: Added Makefile rule to generate ctags; src/Makefile --- src/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3