diff options
| author | Eli Zaretskii | 2015-12-11 12:07:26 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-11 12:07:26 +0200 |
| commit | 3e08f784d1cb8ebd0bd4ff53c1948a65c4924d52 (patch) | |
| tree | be175b403909d3207a4e2b97accd905796bda62c /lib-src | |
| parent | 9d2b8e768f2015a89f7609dedf7b28ea5e8123b5 (diff) | |
| download | emacs-3e08f784d1cb8ebd0bd4ff53c1948a65c4924d52.tar.gz emacs-3e08f784d1cb8ebd0bd4ff53c1948a65c4924d52.zip | |
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.c | 1 |
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) | |||
| 4985 | 4985 | ||
| 4986 | LOOP_ON_INPUT_LINES (inf, lb, bp) | 4986 | LOOP_ON_INPUT_LINES (inf, lb, bp) |
| 4987 | { | 4987 | { |
| 4988 | bp = skip_spaces (bp); | ||
| 4988 | if (bp[0] != 'f' && bp[0] != 'l') | 4989 | if (bp[0] != 'f' && bp[0] != 'l') |
| 4989 | continue; | 4990 | continue; |
| 4990 | 4991 | ||