diff options
| author | john muhl | 2024-04-20 21:19:27 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2024-04-25 18:39:30 +0300 |
| commit | c493f28cc948ac4aef9c262345a608b3c7d413a4 (patch) | |
| tree | 5599c46573495fd84a57b0fce24131ce399c847f /test/lisp/progmodes/lua-ts-mode-resources/which-function.lua | |
| parent | a45ae6bce982ee7eff33242e0742a6cfda01d4cb (diff) | |
| download | emacs-c493f28cc948ac4aef9c262345a608b3c7d413a4.tar.gz emacs-c493f28cc948ac4aef9c262345a608b3c7d413a4.zip | |
Fix which-function error in 'lua-ts-mode' (bug#70515)
* lisp/progmodes/lua-ts-mode.el (lua-ts-mode): Remove incorrect
usage of 'which-func-functions'.
* test/lisp/progmodes/lua-ts-mode-tests.el
(lua-ts-test-which-function): Add test.
* test/lisp/progmodes/lua-ts-mode-resources/which-function.lua:
New file.
Diffstat (limited to 'test/lisp/progmodes/lua-ts-mode-resources/which-function.lua')
| -rw-r--r-- | test/lisp/progmodes/lua-ts-mode-resources/which-function.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lisp/progmodes/lua-ts-mode-resources/which-function.lua b/test/lisp/progmodes/lua-ts-mode-resources/which-function.lua new file mode 100644 index 00000000000..621d818461c --- /dev/null +++ b/test/lisp/progmodes/lua-ts-mode-resources/which-function.lua | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | local function f(x) | ||
| 2 | print(x) | ||
| 3 | end | ||