mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
28e2e8aa04
Problem:
- Current lua indentexpr does not indent for '(' ')'.
- Missing indent test for lua.
Solution:
- Match '(', ')' in `function GetLuaIndentIntern`.
- Add an indent test for lua.
closes: vim/vim#15364
c0f7505ede
Co-authored-by: Yinzuo Jiang <jiangyinzuo@foxmail.com>
20 lines
292 B
Lua
20 lines
292 B
Lua
-- vim: set ft=lua sw=2 noet:
|
|
|
|
-- START_INDENT
|
|
function foo(a, b, c, d)
|
|
return { a, b, c, d }
|
|
end
|
|
|
|
local a = foo(
|
|
1,
|
|
2,
|
|
"longxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
4
|
|
)
|
|
|
|
local b = {
|
|
1,
|
|
2,
|
|
}
|
|
-- END_INDENT
|