comparison runtime/indent/lua.vim @ 30324:0827d3d6d8c0

Update runtime files Commit: https://github.com/vim/vim/commit/9712ff1288f942736ed76c0dec014909f067eec9 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 18 13:04:22 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Sep 2022 14:15:05 +0200
parents 63b0b7b79b25
children f7576cf3640f
comparison
equal deleted inserted replaced
30323:7637e274f2a6 30324:0827d3d6d8c0
1 " Vim indent file 1 " Vim indent file
2 " Language: Lua script 2 " Language: Lua script
3 " Maintainer: Marcus Aurelius Farias <marcus.cf 'at' bol.com.br> 3 " Maintainer: Marcus Aurelius Farias <marcus.cf 'at' bol.com.br>
4 " First Author: Max Ischenko <mfi 'at' ukr.net> 4 " First Author: Max Ischenko <mfi 'at' ukr.net>
5 " Last Change: 2017 Jun 13 5 " Last Change: 2017 Jun 13
6 " 2022 Sep 07: b:undo_indent added by Doug Kearns
6 7
7 " Only load this indent file when no other was loaded. 8 " Only load this indent file when no other was loaded.
8 if exists("b:did_indent") 9 if exists("b:did_indent")
9 finish 10 finish
10 endif 11 endif
15 " To make Vim call GetLuaIndent() when it finds '\s*end' or '\s*until' 16 " To make Vim call GetLuaIndent() when it finds '\s*end' or '\s*until'
16 " on the current line ('else' is default and includes 'elseif'). 17 " on the current line ('else' is default and includes 'elseif').
17 setlocal indentkeys+=0=end,0=until 18 setlocal indentkeys+=0=end,0=until
18 19
19 setlocal autoindent 20 setlocal autoindent
21
22 let b:undo_indent = "setlocal autoindent< indentexpr< indentkeys<"
20 23
21 " Only define the function once. 24 " Only define the function once.
22 if exists("*GetLuaIndent") 25 if exists("*GetLuaIndent")
23 finish 26 finish
24 endif 27 endif