summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-12-11 12:07:26 +0200
committerEli Zaretskii <eliz@gnu.org>2015-12-11 12:07:26 +0200
commit3e08f784d1cb8ebd0bd4ff53c1948a65c4924d52 (patch)
treebe175b403909d3207a4e2b97accd905796bda62c /lib-src
parent9d2b8e768f2015a89f7609dedf7b28ea5e8123b5 (diff)
downloademacs-3e08f784d1cb8ebd0bd4ff53c1948a65c4924d52.tar.gz
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.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c1
1 files changed, 1 insertions, 0 deletions
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;