Mercurial > vim
changeset 32939:995bbd5ddec6
runtime(lua): fix lua indentation of non-lowercase "keywords" (#11759)
Commit: https://github.com/vim/vim/commit/9fa35b1c38b84d95b5c8e083aa742e0e0490fa1f
Author: beardedsakimonkey <54521218+beardedsakimonkey@users.noreply.github.com>
Date: Sun Aug 20 19:21:51 2023 +0000
runtime(lua): fix lua indentation of non-lowercase "keywords" (https://github.com/vim/vim/issues/11759)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 20 Aug 2023 21:30:07 +0200 |
parents | 8509b2b41b28 |
children | 98165b7f48ec |
files | runtime/indent/lua.vim |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/indent/lua.vim +++ b/runtime/indent/lua.vim @@ -27,6 +27,16 @@ if exists("*GetLuaIndent") endif function! GetLuaIndent() + let ignorecase_save = &ignorecase + try + let &ignorecase = 0 + return GetLuaIndentIntern() + finally + let &ignorecase = ignorecase_save + endtry +endfunction + +function! GetLuaIndentIntern() " Find a non-blank line above the current line. let prevlnum = prevnonblank(v:lnum - 1)