From 3e08f784d1cb8ebd0bd4ff53c1948a65c4924d52 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 11 Dec 2015 12:07:26 +0200 Subject: Improve Lua support in etags * lib-src/etags.c (Lua_functions): Skip spaces before looking for "function". * etc/NEWS: Mention improved Lua support by 'etags'. * test/etags/lua-src/test.lua (test): Add tests for indented function definitions. * test/etags/ETAGS.good_1: * test/etags/ETAGS.good_2: * test/etags/ETAGS.good_3: * test/etags/ETAGS.good_4: * test/etags/ETAGS.good_5: * test/etags/ETAGS.good_6: * test/etags/CTAGS.good: Adapt to the modified Lua tests. --- lib-src/etags.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib-src') diff --git a/lib-src/etags.c b/lib-src/etags.c index cd49f7199ba..3cb39689b8d 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -4985,6 +4985,7 @@ Lua_functions (FILE *inf) LOOP_ON_INPUT_LINES (inf, lb, bp) { + bp = skip_spaces (bp); if (bp[0] != 'f' && bp[0] != 'l') continue; -- cgit v1.2.1